new test flow. improved formatting.
This commit is contained in:
parent
01908be951
commit
7dcf1279b7
@ -38,7 +38,7 @@ public typealias ActionBlock = () -> ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
public var getRange: NSRange {
|
public var getRange: NSRange {
|
||||||
return NSRange(location: 0, length: text?.count ?? 0)
|
NSRange(location: 0, length: text?.count ?? 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------
|
//------------------------------------------------------
|
||||||
@ -209,7 +209,7 @@ public typealias ActionBlock = () -> ()
|
|||||||
|
|
||||||
/// Default
|
/// Default
|
||||||
@objc open class func label() -> Label {
|
@objc open class func label() -> Label {
|
||||||
return Label(frame: .zero)
|
Label(frame: .zero)
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------
|
//------------------------------------------------------
|
||||||
@ -794,17 +794,11 @@ extension Label {
|
|||||||
accessibilityTraits = .staticText
|
accessibilityTraits = .staticText
|
||||||
}
|
}
|
||||||
|
|
||||||
public func needsToBeConstrained() -> Bool {
|
public func needsToBeConstrained() -> Bool { true }
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
public func horizontalAlignment() -> UIStackView.Alignment {
|
public func horizontalAlignment() -> UIStackView.Alignment { .leading }
|
||||||
return .leading
|
|
||||||
}
|
|
||||||
|
|
||||||
public func copyBackgroundColor() -> Bool {
|
public func copyBackgroundColor() -> Bool { true }
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Multi-Link Functionality
|
// MARK: - Multi-Link Functionality
|
||||||
@ -916,6 +910,7 @@ extension UITapGestureRecognizer {
|
|||||||
if label.makeWholeViewClickable {
|
if label.makeWholeViewClickable {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
guard let abstractContainer = label.abstractTextContainer() else { return false }
|
guard let abstractContainer = label.abstractTextContainer() else { return false }
|
||||||
let textContainer = abstractContainer.0
|
let textContainer = abstractContainer.0
|
||||||
let layoutManager = abstractContainer.1
|
let layoutManager = abstractContainer.1
|
||||||
@ -990,6 +985,7 @@ extension Label {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user