Fresh Beginning
  • Home
  • Portfolio
  • Buy Me A Coffee
  • Patreon
  • Speaking
  • Reading
  • About Me
Subscribe

UIView

A collection of 2 posts
Making a crater in UIView with CALayer
iOS

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 [http://stackoverflow.com/questions/16512761/calayer-with-transparent-hole-in-it] . Although seemingly innocuous, it took me a while to figure out given the view, how to puncture any shape into it. To make it
Feb 5, 2017 4 min read
iOS

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 try to init UIView with following initializer, UIView* v = [[UIView alloc] init]; It is implicit that I
Oct 11, 2015 1 min read
Fresh Beginning © 2023
Powered by Ghost