diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index 78d34574..c8427f2e 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -404,7 +404,7 @@ open class Label: UILabel, ViewProtocol, UserInfoable { } 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 layoutManager = abstractContainer.layoutManager @@ -472,7 +472,7 @@ open class Label: UILabel, ViewProtocol, UserInfoable { //-------------------------------------------------- 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 layoutManager = abstractContainer.layoutManager