LayoutMode
public enum LayoutMode
Defines how the layout(mode:)
method layout its flex items.
-
This is the default mode when no parameter is specified. Children are layouted inside the container’s size (width and height).
Declaration
Swift
case fitContainer
-
In this mode, children are layouted using only the container’s width. The container’s height will be adjusted to fit the flexbox’s children
Declaration
Swift
case adjustHeight
-
In this mode, children are layouted using only the container’s height. The container’s width will be adjusted to fit the flexbox’s children
Declaration
Swift
case adjustWidth