Fresh Beginning
  • Home
  • Speaking
  • Reading
  • Github
  • Alma Mater
  • Contact
Subscribe
Tagged

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. Although seemingly innocuous, it took me a while to figure out given the view, how to puncture any shape into it. To make it more interesting let's not only add

  • Jayesh Kawli
Jayesh Kawli 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

  • Jayesh Kawli
Jayesh Kawli Oct 11, 2015 • 1 min read
Fresh Beginning © 2022
Powered by Ghost