vds_ios/VDS/Components/Tabs/TabModel.swift
Matt Bruce 1205fc7fad moved underneath tabs class
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2023-05-24 17:39:15 -05:00

29 lines
605 B
Swift

//
// TabModel.swift
// VDS
//
// Created by Matt Bruce on 5/22/23.
//
import Foundation
extension Tabs {
public struct TabModel {
///Text that goes in the Tab
public var text: String
///Click event when you click on a tab
public var onClick: ((Int) -> Void)?
///Width of the tab
public var width: CGFloat?
public init(text: String, onClick: ((Int) -> Void)? = nil, width: CGFloat? = nil) {
self.text = text
self.onClick = onClick
self.width = width
}
}
}