Index

RBMenuSegmentButtonSchema.h

Classes


RBMenuSegmentButtonSchema

A menu button schema.

Properties

The unique identifier of the button. Identifier is also used as theme identifier within the segment theme.
public identifier NSString { get }

The title for the button that will be created from this schema.
public title NSString? { get }

Theme values to apply after any other prior theming has been applied.
public themeOverrides [String : Any]? { get }

The custom cell to use instead of the default (RBBaseCellView).
public custom RBBaseCellView? { get }

Indicates that is is a schema that can be toggled.
public canBeToggled Bool { get }

Functions

Initializes a new menu button schema.
@param identifier : The unique identifier of the button.
@param title : The title of the button.
@param canBeToggled : Whether or not the button can be toggled.
@param themeOverrides : Theme values to apply after any other prior theming has been applied.
@returns The initialized menu button schema.
- (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier

Initializes a new custom button schema.
@param identifier : The unique identifier of the button.
@param custom : The custom cell view.
@param themeOverrides : Theme values to apply after any other prior theming has been applied.
@returns The initialized menu custom button schema.
- (nonnull instancetype)initCustomWithIdentifier:(nonnull NSString *)identifier

Initializes a new menu button schema.
@param identifier : The unique identifier of the button.
@param title : The title of the button.
@param canBeToggled : Whether or not the button can be toggled.
@param themeOverrides : Theme values to apply after any other prior theming has been applied.
@returns The initialized menu button schema.
+ (nonnull RBMenuSegmentButtonSchema *)buttonWithIdentifier:(nonnull NSString *)identifier