Finally a replacement from archaic Target/Selector pattern, iOS 14 gives us UIAction (with closures)!
I completely missed this talk at WWDC, I am glad Anupam Chugh posted about it.
Side note: I am working on a public Swift Package release of my closure based SlamKit. It replaces Mac & iOS user interface elements (with Target/Action, DataSource, Delegate patterns) with a Closure approach. Since it works on almost all older OSes, I will probably stick with that until iOS14 becomes more common, before using UIActions.
No comments:
Post a Comment