added init
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
72f5edb92c
commit
eacee20fe9
@ -12,7 +12,7 @@ import Combine
|
||||
public struct ToolTipLabelAttribute: ActionLabelAttributeModel {
|
||||
public var id = UUID()
|
||||
public var accessibleText: String? = "Tool Tip"
|
||||
public var action = PassthroughSubject<Void, Never>()
|
||||
public var action: PassthroughSubject<Void, Never>
|
||||
public var location: Int
|
||||
public var length: Int
|
||||
public var tintColor: UIColor
|
||||
@ -28,6 +28,14 @@ public struct ToolTipLabelAttribute: ActionLabelAttributeModel {
|
||||
|
||||
}
|
||||
|
||||
public init(action: PassthroughSubject<Void, Never> = .init(), location: Int, length: Int, tintColor: UIColor = .black, accessibleText: String? = nil){
|
||||
self.action = action
|
||||
self.location = location
|
||||
self.length = length
|
||||
self.tintColor = tintColor
|
||||
self.accessibleText = accessibleText
|
||||
}
|
||||
|
||||
public static func == (lhs: ToolTipLabelAttribute, rhs: ToolTipLabelAttribute) -> Bool {
|
||||
lhs.isEqual(rhs)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user