Swift project to test auto layout behavior of a view
- Build a view with auto layout (you can use
TestView.swift
andTestView.xib
as an example) - Edit the
Main.storyboard
and change the Custom Class > Class of "Test View" to your class. - Start the simulator and drag the arrows around to resize the view and see how your constraints work.
I developed this tool as a helper for a series of articles I'll be posting to my website. Stay tuned for details!
This project uses nameOfClass.swift
from indieSoftware/INSwift, thanks to Sven Korset for sharing!