iOS, Swift 3.0, Xcode, iOS10, UIKit, Github, Demo, Tips, Example, Crater, Hole, UIView, CALayer Making a crater in UIView with CALayer Although title sounds horrible, believe me - It's not that bad. This is a trick I learned from StackOverflow post. Although seemingly innocuous, it took me a while to figure out given the
iOS, AutoLayout, Swizzle, init, Method Swizzling, UIView Swizzling UIView initializer with Autolayout If you are a fan of autolayout and using it extensively, you can feel the pain of writing self.translatesAutoresizingMaskIntoConstraints = NO; every time UIView is initialized. This is awkward to use when I