FilterFeedbackBarButton
public struct FilterFeedbackBarButton
extension FilterFeedbackBarButton: View
extension FilterFeedbackBarButton: _ViewEmptyChecking
The FilterFeedbackBarButton
is a SwiftUI component for item’s options that are used in FilterFeedbackBar when the item’s type is SortFilterItem.picker
.
Typically not used by application developer.
Usage
icon
is the leading image in the button.
title
is the title for the option.
isSelected
is the state of the button whether it is selected. The style of the button will change based on its state.
FilterFeedbackBarButton(
icon: Image(systemName: "checkmark"),
title: "Status",
isSelected: true)
-
Undocumented
Declaration
Swift
public init(@ViewBuilder icon: () -> any View = { EmptyView() }, @ViewBuilder title: () -> any View, isSelected: Bool, spacing: CGFloat = 4, componentIdentifier: String? = FilterFeedbackBarButton.identifier)
-
Undocumented
Declaration
Swift
static let identifier: String
-
Undocumented
Declaration
Swift
init(icon: Image? = nil, title: AttributedString, isSelected: Bool, spacing: CGFloat = 4)
-
Undocumented
Declaration
Swift
init(_ configuration: FilterFeedbackBarButtonConfiguration)
-
Declaration
Swift
public var body: some View { get }
-
Undocumented
Declaration
Swift
public var isEmpty: Bool { get }