RatingControlFormView
public struct RatingControlFormView
extension RatingControlFormView: View
extension RatingControlFormView: _ViewEmptyChecking
The form view which contains a title, rating control, and a subtitle
-
init(title:
valueLabel: onStarImage: offStarImage: halfStarImage: reviewCountLabel: rating: ratingControlStyle: ratingBounds: itemSize: interItemSpacing: ratingValueFormat: showsValueLabel: averageRating: averageRatingFormat: reviewCount: reviewCountFormat: reviewCountCeiling: reviewCountCeilingFormat: showsReviewCountLabel: subtitle: axis: ) Undocumented
Declaration
Swift
public init(@ViewBuilder title: () -> any View, @ViewBuilder valueLabel: () -> any View = { EmptyView() }, @ViewBuilder onStarImage: () -> any View, @ViewBuilder offStarImage: () -> any View, @ViewBuilder halfStarImage: () -> any View, @ViewBuilder reviewCountLabel: () -> any View = { EmptyView() }, rating: Binding<Int>, ratingControlStyle: RatingControl.Style = .editable, ratingBounds: ClosedRange<Int> = 0 ... 5, itemSize: CGSize? = nil, interItemSpacing: CGFloat? = nil, ratingValueFormat: String? = nil, showsValueLabel: Bool = false, averageRating: CGFloat? = nil, averageRatingFormat: String = "%.1f", reviewCount: Int? = nil, reviewCountFormat: String? = nil, reviewCountCeiling: Int? = nil, reviewCountCeilingFormat: String? = nil, showsReviewCountLabel: Bool = false, @ViewBuilder subtitle: () -> any View = { EmptyView() }, axis: Axis = .horizontal)
-
init(title:
valueLabel: onStarImage: offStarImage: halfStarImage: reviewCountLabel: rating: ratingControlStyle: ratingBounds: itemSize: interItemSpacing: ratingValueFormat: showsValueLabel: averageRating: averageRatingFormat: reviewCount: reviewCountFormat: reviewCountCeiling: reviewCountCeilingFormat: showsReviewCountLabel: subtitle: axis: ) Undocumented
Declaration
Swift
init(title: AttributedString, valueLabel: AttributedString? = nil, onStarImage: Image = FioriIcon.actions.favorite.renderingMode(.template).resizable(), offStarImage: Image = FioriIcon.actions.unfavorite.renderingMode(.template).resizable(), halfStarImage: Image = FioriIcon.actions.halfStar.renderingMode(.template).resizable(), reviewCountLabel: AttributedString? = nil, rating: Binding<Int>, ratingControlStyle: RatingControl.Style = .editable, ratingBounds: ClosedRange<Int> = 0 ... 5, itemSize: CGSize? = nil, interItemSpacing: CGFloat? = nil, ratingValueFormat: String? = nil, showsValueLabel: Bool = false, averageRating: CGFloat? = nil, averageRatingFormat: String = "%.1f", reviewCount: Int? = nil, reviewCountFormat: String? = nil, reviewCountCeiling: Int? = nil, reviewCountCeilingFormat: String? = nil, showsReviewCountLabel: Bool = false, subtitle: AttributedString? = nil, axis: Axis = .horizontal)
-
Undocumented
Declaration
Swift
init(_ configuration: RatingControlFormViewConfiguration)
-
Declaration
Swift
public var body: some View { get }
-
Undocumented
Declaration
Swift
public var isEmpty: Bool { get }