Index

RBMenuSegmentSchema.h

Classes


RBMenuSegmentSchema

A schema describing a menu segment.

Properties

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

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

The header view to display above the items in the segment. Note RBMenuSegmentHeaderView may serve for most purposes.
public headerView UIView? { get }

An array of RBMenuSegmentButton schemas.
public buttons [RBMenuSegmentButtonSchema] { get }

Functions

Initializes the menu segment schema.
@param identifier : The unique identifier of the segment.
@param headerView : The header view to display above the items in the segment. Note RBMenuSegmentHeaderView may serve for most purposes.
@param buttons : An array of segment button schemas (of type RBMenuSegmentButtonSchema).
@param themeOverrides : Theme values to apply after any other prior theming has been applied.
@returns The initialized menu segment schema.
- (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier