Skip to content

UIKit's Layout Margins in action for my talk at NSSpain 2019

License

Notifications You must be signed in to change notification settings

hybridcattt/LayoutMarginsDemo

Repository files navigation

LayoutMarginsDemo

This project demonstrates UIKit's layout margins in action.

Created by Marina Gornostaeva for Detail-oriented UI with Layout Margins talk @ NSSpain 2019.

Recording: Vimeo | Slides: SpeakerDeck

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 preservesSuperviewLayoutMargins to true on your views.

The demo

Requirements: Xcode 11, iOS 9.0+

More

About

UIKit's Layout Margins in action for my talk at NSSpain 2019

Topics

Resources

License

Stars

Watchers

Forks

Languages