Skip to content

Instantly share code, notes, and snippets.

@BasThomas
Created November 23, 2018 14:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BasThomas/9f250aa6de762859dc788c365f561a5d to your computer and use it in GitHub Desktop.
Save BasThomas/9f250aa6de762859dc788c365f561a5d to your computer and use it in GitHub Desktop.
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