Created
March 30, 2019 11:56
-
-
Save tatey/992d584dbc17f5a4ee2968bc16624a7f to your computer and use it in GitHub Desktop.
Why can't I use this "setter" via the Appearance proxy?
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
class MyView: UIView { | |
func set(borderTintColor: UIColor?, forControlState controlState: UIControl.State) { | |
// literally empty | |
} | |
// I've also tried prefixing with @objc | |
} |
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
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