We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For Apps supporting < iOS 13, it would be nice to expose a .colorProvider: (UITraitCollection) -> UIColor
.colorProvider: (UITraitCollection) -> UIColor
example callsite:
let label: UILabel = { let label = UILabel() label.bonMotStyle = .init([ .alignment(.center), .colorProvider({ // Ideally one would abstract this semantically switch $0 { case .light: return .darkText case .dark: return .lightText } ) ]) return label }()
The implementation on the BonMot side would involve updating the current AdaptableTextContainer implementations.
BonMot
AdaptableTextContainer
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For Apps supporting < iOS 13, it would be nice to expose a
.colorProvider: (UITraitCollection) -> UIColor
example callsite:
The implementation on the
BonMot
side would involve updating the currentAdaptableTextContainer
implementations.The text was updated successfully, but these errors were encountered: