29 lines
605 B
Swift
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
|
|
}
|
|
}
|
|
}
|