BPKFieldSet
public struct BPKFieldSet<Content> : View where Content : View
A component which wraps its content (view) and optionally adds a title, description and error label (depending on the field’s state) around it. Supported states are Default, and Error. The states are dispatched to the wrapped view through the .environment modifier.
Use inputState(_ state: State)
to change the state of the field set.
Use accessibilityPrefix(_ prefix: String)
to add a prefix to each accessibilityIdentifier
that gets added to all fieldset’s subcomponents
-
Declaration
Swift
public init( label: String? = nil, description: String? = nil, @ViewBuilder content: () -> Content )
-
Declaration
Swift
public var body: some View { get }
-
Declaration
Swift
public func inputState(_ state: BPKFieldSetState) -> BPKFieldSet
-
Declaration
Swift
public func accessibilityPrefix(_ prefix: String?) -> BPKFieldSet