KeyValueItem
KeyValueItem provides a customizable activity item with a key and a value.
Usage
KeyValueItem(key: {
Text("key 1")
}, value: {
Text("value 1")
}, axis: .vertical)
-
Undocumented
Declaration
Swift
public init(@ViewBuilder key: () -> any View, @ViewBuilder value: () -> any View = { EmptyView() }, controlState: ControlState = .normal, errorMessage: AttributedString? = nil, axis: Axis = .horizontal, componentIdentifier: String? = KeyValueItem.identifier) -
Undocumented
Declaration
Swift
static let identifier: String -
Undocumented
Declaration
Swift
init(key: AttributedString, value: AttributedString? = nil, controlState: ControlState = .normal, errorMessage: AttributedString? = nil, axis: Axis = .horizontal) -
Undocumented
Declaration
Swift
init(_ configuration: KeyValueItemConfiguration) -
Declaration
Swift
@MainActor public var body: some View { get } -
Undocumented
Declaration
Swift
public var isEmpty: Bool { get }