BPKRatingBar

public struct BPKRatingBar : View
  • Initializes a new instance of the BPKRatingBar struct.

    Declaration

    Swift

    public init(
        label: String,
        rating: Float,
        accessibilityLabel: String,
        ratingScale: RatingScale = .zeroToFive,
        showScale: Bool = true,
        style: Style = .default
    )

    Parameters

    label

    The label for the rating bar.

    rating

    The rating value.

    accessibilityLabel

    The accessibility label for the rating bar.

    ratingScale

    The rating scale for the rating bar. Default value is .zeroToFive.

    showScale

    A boolean value indicating whether to show the rating scale. Default value is true.

    style

    The style of the rating bar. Default value is .default.

  • Declaration

    Swift

    public var body: some View { get }
  • An enumeration representing different rating scales.

    See more

    Declaration

    Swift

    public enum RatingScale
  • The style options for the rating bar.

    See more

    Declaration

    Swift

    public enum Style