Auto Layout with an Extended Visual Format Language
summary
Library banjun/NorthLayout extends Visual Format Language by letting segments wrapped in double vertical bars generate constraints to layout margins rather than superview edges, which lets margins stand in for safe area on all iOS devices. It parses extended VFL with kareman/FootlessParser into an abstract syntax tree, converts margin segments into margin constraints and emits standard Auto Layout constraints, and reduces boilerplate so existing VFL code works with minimal changes.
AI-written summary · about
chapters (13)
- 0:00Intro
- 0:12Speaker Profile
- 1:40Auto Layout with VFL
- 3:30Auto Layout-without North Layout
- 4:03NorthLayout Usage
- 4:31Readable & Reviewable
- 5:04VFL & Safe Area
- 5:28Extending VFL
- 6:32Why Layout Margins?
- 7:01Layout Margins & Safe Area
- 7:37Implementing EVFL
- 8:47EVFL Abstract Syntax Tree
- 9:40Minimum Diff for Safe Area Support
related talks
40mThe Layout Framework
37mConstraintLayout deep dive
47mHow I Learned To Stop Worrying and Love Autolayout
52miOS Animations with Auto Layout
38mCreating adaptable layouts using Trait Collections and Container Views
38mWhy is Adaptive Layout a Nightmare?
49mUICollectionViewLayout from scratch
01h 15mAutomatic Virtualization of Rendering Arbitrary Layouts
