RatingControl
public struct RatingControl
extension RatingControl: View
extension RatingControl: _ViewEmptyChecking
RatingControl
uses images to represent a rating.
The number of “On” images denotes the rating. The default “On” image is a filled star while the default “Off” inmage is an unfilled star.
-
init(rating:
ratingControlStyle: ratingBounds: onImage: offImage: itemSize: onColor: offColor: interItemSpacing: ) Undocumented
Declaration
Swift
public init(rating: Binding<Int>, ratingControlStyle: RatingControl.Style = .editable, ratingBounds: ClosedRange<Int> = 0 ... 5, onImage: Image? = nil, offImage: Image? = nil, itemSize: CGSize? = nil, onColor: Color? = nil, offColor: Color? = nil, interItemSpacing: CGFloat? = nil)
-
The available styles for the
See moreFUIRatingControl
.Declaration
Swift
enum Style
-
Undocumented
Declaration
Swift
init(_ configuration: RatingControlConfiguration)
-
Declaration
Swift
public var body: some View { get }
-
Undocumented
Declaration
Swift
public var isEmpty: Bool { get }