BPKRatingBar
public struct BPKRatingBar : View
-
Initializes a new instance of the
BPKRatingBarstruct.Declaration
Swift
public init( label: String, rating: Float, accessibilityLabel: String, ratingScale: RatingScale = .zeroToFive, showScale: Bool = true, style: Style = .default )Parameters
labelThe label for the rating bar.
ratingThe rating value.
accessibilityLabelThe accessibility label for the rating bar.
ratingScaleThe rating scale for the rating bar. Default value is
.zeroToFive.showScaleA boolean value indicating whether to show the rating scale. Default value is
true.styleThe style of the rating bar. Default value is
.default. -
Declaration
Swift
public var body: some View { get } -
An enumeration representing different rating scales.
See moreDeclaration
Swift
public enum RatingScale -
The style options for the rating bar.
See moreDeclaration
Swift
public enum Style