BPKHotelStarRating
public struct BPKHotelStarRating : View
A view that displays a star rating based on a rating value.
-
Initializes a new
BPKHotelStarRating
instance.Declaration
Swift
public init( rating: Binding<Int>, size: BPKStarRatingSize = .small )
Parameters
rating
A binding to the current rating value. Represents the number of stars to display.
size
The size of the star rating, defaults to
.small
. -
Declaration
Swift
public var body: some View { get }