depricated methods and updated attribute addition
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
6718e15133
commit
f05ea2aac6
@ -27,7 +27,9 @@ public typealias ActionBlock = () -> ()
|
||||
public var standardFontSize: CGFloat = 0.0
|
||||
|
||||
/// Set this to use a custom sizing object during updateView instead of the standard.
|
||||
@available(*, deprecated, message: "VDS is maintaining scaleSize")
|
||||
public var sizeObject: MFSizeObject?
|
||||
@available(*, deprecated, message: "VDS is maintaining scaleSize")
|
||||
public var scaleSize: NSNumber?
|
||||
|
||||
/// A specific text index to use as a unique marker.
|
||||
@ -292,11 +294,6 @@ public typealias ActionBlock = () -> ()
|
||||
@objc open func setScale(_ scale: Bool) {
|
||||
if scale {
|
||||
standardFontSize = font.pointSize
|
||||
if let floatScale = scaleSize?.floatValue {
|
||||
updateView(CGFloat(floatScale))
|
||||
} else {
|
||||
updateView(MVMCoreUIUtility.getWidth())
|
||||
}
|
||||
} else {
|
||||
standardFontSize = 0
|
||||
}
|
||||
@ -471,7 +468,12 @@ extension Label {
|
||||
.sink { _ in
|
||||
actionBlock()
|
||||
}
|
||||
attributes?.append(textLink)
|
||||
if var attributes {
|
||||
attributes.append(textLink)
|
||||
setNeedsUpdate()
|
||||
} else {
|
||||
attributes = [textLink]
|
||||
}
|
||||
}
|
||||
|
||||
@objc public func clearActionableClauses() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user