Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tatey
Created March 30, 2019 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatey/a92d90ebe5bc40e2f960d0bbfe5d9605 to your computer and use it in GitHub Desktop.
Save tatey/a92d90ebe5bc40e2f960d0bbfe5d9605 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