YMAMutableRatingAppearance

Objective-C

@interface YMAMutableRatingAppearance : YMARatingAppearance

Swift

class YMAMutableRatingAppearance : YMARatingAppearance

A class with editable settings for the standard rating appearance.

  1. Properties
  2. emptyStarColor
  3. filledStarColor
  4. preferredStarSize

Properties

emptyStarColor

The outline color of an empty (unfilled) star.

Declaration

Objective-C

@property (nonatomic, strong) UIColor *_Nonnull emptyStarColor;

filledStarColor

The color of a filled star.

Declaration

Objective-C

@property (nonatomic, strong) UIColor *_Nonnull filledStarColor;

preferredStarSize

The preferred size of a star.

Note If the use of the preferred size makes the rating too large for the space reserved for it, the maximum allowed size is used instead.

Declaration

Objective-C

@property (nonatomic) CGFloat preferredStarSize;

Swift

var preferredStarSize: CGFloat { get set }