UIView Extension
▻https://hackernoon.com/uiview-extension-c1d3bfe33ecf?source=rss----3a8144eabfe3---4
With the advancement of #swift and the changes it brings on by providing great power to extensions. Developers have started to put more focus on extension instead of subclassing for most of the cases.This tutorial is not for discussing when to use extension or subclass or the pros/cons of any of these. This blog is more focussed on UIView extension and showing how it can help and make our life easy with different type of use case.1. Add IBInspectableIf you are not familiar with IBInspectable
, you can go through this WWDC video showing the use and power of this keyword ▻https://developer.apple.com/videos/play/wwdc2015/407/With that being said, now we know what IBInspectable is and how it can be used, but we are not gonna subclass any UIView and add this properties in there, rather we (...)