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