FilterFeedbackBarItem
public struct FilterFeedbackBarItem
extension FilterFeedbackBarItem: View
extension FilterFeedbackBarItem: _ViewEmptyChecking
The FilterFeedbackBarItem is a SwiftUI component for items in FilterFeedbackBar.
Typically not used by application developer.
Usage
icon is the leading image in the button.
title is the button title.
accessoryIcon is the trailing image in the button.
isSelected is the state of the button whether the item has selected value. The style of the button will change based on its state.
FilterFeedbackBarItem(
icon: Image(systemName: "clock"),
title: "Item Title",
accessoryIcon: Image(systemName: "chevron.down"),
isSelected: self.item.isChecked)
-
Undocumented
Declaration
Swift
public init(@ViewBuilder icon: () -> any View = { EmptyView() }, @ViewBuilder title: () -> any View, @ViewBuilder accessoryIcon: () -> any View = { EmptyView() }, isSelected: Bool, spacing: CGFloat = 6, componentIdentifier: String? = FilterFeedbackBarItem.identifier) -
Undocumented
Declaration
Swift
static let identifier: String -
Undocumented
Declaration
Swift
init(icon: Image? = nil, title: AttributedString, accessoryIcon: Image? = nil, isSelected: Bool, spacing: CGFloat = 6) -
Undocumented
Declaration
Swift
init(_ configuration: FilterFeedbackBarItemConfiguration) -
Declaration
Swift
@MainActor public var body: some View { get } -
Undocumented
Declaration
Swift
public var isEmpty: Bool { get }