Replacing Selectors with Closures in UIButton
10 May 2021 1 minute read 0 comments rizwanahmed $0.03
iOS 14.0 brings us many improvements and new APIs using which the developers can write efficient code. One such API is the closure based action API instead of the addTarget method in UIControls. Yes, you heard me right—no more usage of addTarget meth...