Created
November 23, 2018 14:41
-
-
Save BasThomas/9f250aa6de762859dc788c365f561a5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
protocol Component: NSObjectProtocol { | |
var accessibilityTraits: UIAccessibilityTraits { get set } | |
} | |
public final class SpecialComponent: UIView, Component {} | |
let mySpecialComponent: Component = SpecialComponent(frame: .zero) | |
mySpecialComponent.accessibilityTraits = .staticText |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment