Re:Apple’s Use of Swift in iOS 13
by dep_b on Thursday September 26, 2019 @04:59PM
(#21085480)
UIButton only? Maybe binding UITextField events?
[ Parent
| on HN ]
Buttons, selector-based Notifications (though the block version is finally good, so we mostly just use that now), & gesture recognizers look like our biggest users of @objc. Basically all to support target/action.
A quick search through one of my apps shows that about 4% of functions are marked as @objc (and we're not using the old compatibility mode where more methods were implicitly @objc either).