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
|
public var standardFontSize: CGFloat = 0.0
|
||||||
|
|
||||||
/// Set this to use a custom sizing object during updateView instead of the standard.
|
/// 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?
|
public var sizeObject: MFSizeObject?
|
||||||
|
@available(*, deprecated, message: "VDS is maintaining scaleSize")
|
||||||
public var scaleSize: NSNumber?
|
public var scaleSize: NSNumber?
|
||||||
|
|
||||||
/// A specific text index to use as a unique marker.
|
/// A specific text index to use as a unique marker.
|
||||||
@ -292,11 +294,6 @@ public typealias ActionBlock = () -> ()
|
|||||||
@objc open func setScale(_ scale: Bool) {
|
@objc open func setScale(_ scale: Bool) {
|
||||||
if scale {
|
if scale {
|
||||||
standardFontSize = font.pointSize
|
standardFontSize = font.pointSize
|
||||||
if let floatScale = scaleSize?.floatValue {
|
|
||||||
updateView(CGFloat(floatScale))
|
|
||||||
} else {
|
|
||||||
updateView(MVMCoreUIUtility.getWidth())
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
standardFontSize = 0
|
standardFontSize = 0
|
||||||
}
|
}
|
||||||
@ -471,7 +468,12 @@ extension Label {
|
|||||||
.sink { _ in
|
.sink { _ in
|
||||||
actionBlock()
|
actionBlock()
|
||||||
}
|
}
|
||||||
attributes?.append(textLink)
|
if var attributes {
|
||||||
|
attributes.append(textLink)
|
||||||
|
setNeedsUpdate()
|
||||||
|
} else {
|
||||||
|
attributes = [textLink]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc public func clearActionableClauses() {
|
@objc public func clearActionableClauses() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user