freshOS / Stevia

:leaves: Concise Autolayout code
https://freshos.github.io/SteviaDocs/
MIT License
3.38k stars 213 forks source link

using layout with safeAreaLayoutGuide #164

Open kallipigous opened 2 years ago

kallipigous commented 2 years ago

I love the simplicity of layout but I keep finding areas where I seem to need to use other commands external to that block.

for example, is there a simple say to include safeAreaLayoutGuide in the equations

something like:

layout( ~ |view1| |view2|
~ )

for top and bottom constraints that are safe

Similarly, what about centering horizontally and vertically in the layout, or distributing views within the available space (like a stack view)

Am I missing something?