You can create a view that fills its superview by using Auto Layout and constraints.
main.swift46 chars3 lines
main.swift57 chars2 lines
main.swift288 chars7 lines
Your view will now fill the entire view of its superview. When you change the size of the superview, the subview will automatically adjust to fill the remaining space.
gistlibby LogSnag