Skip to content

using layout with safeAreaLayoutGuide #164

@kallipigous

Description

@kallipigous

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions