Skip to content

Instantly share code, notes, and snippets.

@tatey tatey/0_MyView.swift
Created Mar 30, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.