Enumerations
The following enumerations are available globally.
-
A parameter and function attribute that can specify multiple views in the form of a closure.
ViewBuilder is used when passing children views as parameter to a parent view.
See moreDeclaration
Swift
@_functionBuilder public enum ViewBuilder
-
A type that specifies the horizontal alignment of the content inside its container.
See moreDeclaration
Swift
public enum HorizontalAlignment
-
A type that specifies the vertical alignment of the content inside its container.
See moreDeclaration
Swift
public enum VerticalAlignment
-
A type that specifies how the content scales to its container’s size.
See moreDeclaration
Swift
public enum ContentMode
-
A type representing an edge in a rectangle.
See moreDeclaration
Swift
public enum Edge : Int8
-
A visual axis.
Add
both
for supporting both horizontal and vertical scroll directionsNote
both
is not an offical SwiftUI axis option.Declaration
Swift
public enum Axis
-
A type that represents the alignment position of text
See moreDeclaration
Swift
public enum TextAlignment
-
Represents a coordinate space.
See moreDeclaration
Swift
public enum CoordinateSpace
-
The display mode for the title in a navigation bar.
See moreDeclaration
Swift
public enum NavigationBarTitleDisplayMode