removed code not needed.
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
8b37986b40
commit
e7f5d4ee94
@ -404,7 +404,7 @@ open class Label: UILabel, ViewProtocol, UserInfoable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public func isAction(for location: CGPoint, inRange targetRange: NSRange) -> Bool {
|
public func isAction(for location: CGPoint, inRange targetRange: NSRange) -> Bool {
|
||||||
guard let attributedText = attributedText, let abstractContainer = abstractTextContainer() else { return false }
|
guard let abstractContainer = abstractTextContainer() else { return false }
|
||||||
let textContainer = abstractContainer.textContainer
|
let textContainer = abstractContainer.textContainer
|
||||||
let layoutManager = abstractContainer.layoutManager
|
let layoutManager = abstractContainer.layoutManager
|
||||||
|
|
||||||
@ -472,7 +472,7 @@ open class Label: UILabel, ViewProtocol, UserInfoable {
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
private func customAccessibilityElement(text: String?, range: NSRange, accessibleText: String? = nil) -> AccessibilityActionElement? {
|
private func customAccessibilityElement(text: String?, range: NSRange, accessibleText: String? = nil) -> AccessibilityActionElement? {
|
||||||
|
|
||||||
guard let text = text, let attributedText, let abstractContainer = abstractTextContainer() else { return nil }
|
guard let text = text, let abstractContainer = abstractTextContainer() else { return nil }
|
||||||
|
|
||||||
let textContainer = abstractContainer.textContainer
|
let textContainer = abstractContainer.textContainer
|
||||||
let layoutManager = abstractContainer.layoutManager
|
let layoutManager = abstractContainer.layoutManager
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user