25 lines
529 B
Swift
25 lines
529 B
Swift
//
|
|
// EntryFieldTextLinkModel.swift
|
|
// VDS
|
|
//
|
|
// Created by Matt Bruce on 4/16/24.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension InputField {
|
|
public struct TextLinkModel {
|
|
|
|
///Text that goes in the Tab
|
|
public var text: String
|
|
|
|
///Click event when you click on a tab
|
|
public var onClick: ((InputField) -> Void)
|
|
|
|
public init(text: String = "Apply", onClick: @escaping (InputField) -> Void) {
|
|
self.text = text
|
|
self.onClick = onClick
|
|
}
|
|
}
|
|
}
|