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 more

    Declaration

    Swift

    @_functionBuilder
    public enum ViewBuilder

Public Types

  • A type that specifies the horizontal alignment of the content inside its container.

    See more

    Declaration

    Swift

    public enum HorizontalAlignment
  • A type that specifies the vertical alignment of the content inside its container.

    See more

    Declaration

    Swift

    public enum VerticalAlignment
  • A type that specifies how the content scales to its container’s size.

    See more

    Declaration

    Swift

    public enum ContentMode
  • A type representing an edge in a rectangle.

    See more

    Declaration

    Swift

    public enum Edge : Int8
  • A visual axis.

    Add both for supporting both horizontal and vertical scroll directions

    Note

    both is not an offical SwiftUI axis option.
    See more

    Declaration

    Swift

    public enum Axis
  • A type that represents the alignment position of text

    See more

    Declaration

    Swift

    public enum TextAlignment
  • Represents a coordinate space.

    See more

    Declaration

    Swift

    public enum CoordinateSpace
  • The display mode for the title in a navigation bar.

    See more

    Declaration

    Swift

    public enum NavigationBarTitleDisplayMode