21 lines
396 B
Swift
21 lines
396 B
Swift
//
|
|
// TabModel.swift
|
|
// VDS
|
|
//
|
|
// Created by Matt Bruce on 5/22/23.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct TabModel {
|
|
public var text: String
|
|
public var onClick: (() -> Void)?
|
|
public var width: CGFloat?
|
|
|
|
public init(text: String, onClick: (() -> Void)? = nil, width: CGFloat? = nil) {
|
|
self.text = text
|
|
self.onClick = onClick
|
|
self.width = width
|
|
}
|
|
}
|