SwiftUI 3 introduced a new container view called ControlGroup
. ControlGroup
container view displays semantically related controls in visually appropriate manner for the given context meaning ControlGroup’s
appearance will depend upon the context of the view
.
ControlGroup
is available for iOS 15+ as well as iPadOS 15+, macOS 12+ and Mac Catalyst 15+.
ControlGroup’s
initializer takes ViewBuilder
content.
public init(@ViewBuilder content: () -> Content)