YMAMutableButtonAppearance

Objective-C

@interface YMAMutableButtonAppearance : YMAButtonAppearance

Swift

class YMAMutableButtonAppearance : YMAButtonAppearance

Класс с изменяемыми настройками стандартного оформления кнопок.

  1. Свойства
  2. textAppearance
  3. highlightedTextColor
  4. normalColor
  5. highlightedColor
  6. borderColor
  7. borderWidth

Свойства

textAppearance

Настройки текста на кнопке (YMALabelAppearance).

Declaration

Objective-C

@property (nonatomic, copy) YMALabelAppearance *_Nonnull textAppearance;

Swift

@NSCopying var textAppearance: YMALabelAppearance { get set }

highlightedTextColor

Цвет текста в нажатом состоянии.

Declaration

Objective-C

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

normalColor

Цвет фона кнопки в обычном состоянии.

Declaration

Objective-C

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

highlightedColor

Цвет фона кнопки в нажатом состоянии.

Declaration

Objective-C

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

borderColor

Цвет рамки кнопки.

Declaration

Objective-C

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

borderWidth

Толщина рамки кнопки.

Declaration

Objective-C

@property (nonatomic) CGFloat borderWidth;

Swift

var borderWidth: CGFloat { get set }