RBMenuSegmentSchema Class Reference

Inherits from NSObject
Declared in RBMenuSegmentSchema.h

Overview

A schema describing a menu segment.

  identifier

The unique identifier of the segment. Identifier is also used as theme identifier within the menu theme.

@property (nonatomic, readonly, nullable) NSString *identifier

Declared In

RBMenuSegmentSchema.h

  themeOverrides

Theme values to apply after any other prior theming has been applied.

@property (nonatomic, readonly, nullable) NSDictionary<NSString*id> *themeOverrides

Declared In

RBMenuSegmentSchema.h

  headerView

The header view to display above the items in the segment. Note RBMenuSegmentHeaderView may serve for most purposes.

@property (nonatomic, readonly, nullable) UIView *headerView

Declared In

RBMenuSegmentSchema.h

  buttons

An array of RBMenuSegmentButton schemas.

@property (nonatomic, readonly, nonnull) NSArray<RBMenuSegmentButtonSchema*> *buttons

Declared In

RBMenuSegmentSchema.h

– initWithIdentifier:headerView:buttons:themeOverrides:

Initializes the menu segment schema.

- (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier headerView:(nullable UIView *)headerView buttons:(nonnull NSArray<RBMenuSegmentButtonSchema*> *)buttons themeOverrides:(nullable NSDictionary<NSString*,id> *)themeOverrides

Parameters

identifier

The unique identifier of the segment.

headerView

The header view to display above the items in the segment. Note RBMenuSegmentHeaderView may serve for most purposes.

buttons

An array of segment button schemas (of type RBMenuSegmentButtonSchema).

themeOverrides

Theme values to apply after any other prior theming has been applied.

Return Value

The initialized menu segment schema.

Declared In

RBMenuSegmentSchema.h