Figuring Out Frame Layouts in Swift
Confession time. I forgot to write an article last week as promised, but I think this one is worth the wait. Today we are back to talk about some frame layouts. We are going back to the days before Auto Layout and showing you how to make a subview with nothing more than your will, wit, and a bit of math. Let’s layout!
The first step is to create a view subclass to work with. Here is a simple example:
»