ColumnsFormStyle

A non-scrolling form style with a trailing aligned column of labels next to a leading aligned column of values.

StructureiOS 16.0+macOS 13.0+tvOS 16.0+watchOS 9.0+ColumnsFormStyle in SwiftUI

Declaration

React
type ColumnsFormStyle = SwiftOpaque<'ColumnsFormStyle'>;
Swift
nonisolated struct ColumnsFormStyle

Overview

Use the FormStyle.columns static variable to create this style:

Form {
   ...
}
.formStyle(.columns)

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also

More in Styles.