Skip to content

Instantly share code, notes, and snippets.

@tatey
Created March 30, 2019 11:56
Show Gist options
  • Save tatey/992d584dbc17f5a4ee2968bc16624a7f to your computer and use it in GitHub Desktop.
Save tatey/992d584dbc17f5a4ee2968bc16624a7f to your computer and use it in GitHub Desktop.
Why can't I use this "setter" via the Appearance proxy?
class MyView: UIView {
func set(borderTintColor: UIColor?, forControlState controlState: UIControl.State) {
// literally empty
}
// I've also tried prefixing with @objc
}
MyView.appearance().set(borderTintColor: .red, forControlState: .normal) // Thread 1: EXC_BAD_ACCESS (code=2, address=0x105916e78)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment