This project demonstrates UIKit's layout margins in action.
About the project
Layout margin propagation is a really powerful thing. Try it out yourself!
A simple gesture recognizer changes the frame of the red view, showing how margins change when the subview is positioned close to the edge of its parent.
This behaviour can be enabled by setting
true on your views.
Requirements: Xcode 11, iOS 9.0+