MutableRatingAppearance

@objc(YMAMutableRatingAppearance)
@objcMembers
public class MutableRatingAppearance : RatingAppearance

A class with editable settings for the standard rating appearance.

  • Text color.

    Declaration

    Swift

    override public var emptyStarColor: UIColor { get set }
  • Declaration

    Swift

    override public var filledStarColor: UIColor { get set }
  • Declaration

    Swift

    override public var preferredStarSize: CGFloat { get set }
  • Corresponding immutable representation of current rating appearance.

    Declaration

    Swift

    public var ratingAppearance: RatingAppearance { get }
  • Undocumented

    Declaration

    Swift

    public convenience init()
  • Creates an object of the MutableRatingAppearance class, i.e., a rating with the specified appearance (outline color, size, and other settings).

    Declaration

    Swift

    public required convenience init(
        emptyStarColor: UIColor,
        filledStarColor: UIColor,
        starSize: CGFloat
    )

    Parameters

    emptyStarColor

    The outline color of an empty (unfilled) star.

    filledStarColor

    The color of a filled star.

    starSize

    The preferred size of a star.

    Return Value

    Configured rating appearance.

NSCopying

  • Undocumented

    Declaration

    Swift

    override public func copy(with zone: NSZone? = nil) -> Any