Constants
The following constants are available globally.
-
Category for components that have a header-like appearance, usually used for header components
Declaration
Objective-C
static const HUBComponentCategory HUBComponentCategoryHeader = @"header"
-
Category for components that have a row-like appearance, with a full screen width and a compact height
Declaration
Objective-C
static const HUBComponentCategory HUBComponentCategoryRow = @"row"
-
Category for components that have a card-like appearance, that are placable in a grid with compact width & height
Declaration
Objective-C
static const HUBComponentCategory HUBComponentCategoryCard = @"card"
-
Category for components that have a carousel-like apperance, with a swipeable horizontal set of child components
Declaration
Objective-C
static const HUBComponentCategory HUBComponentCategoryCarousel = @"carousel"
-
Category for components that have a banner-like appearance, imagery-heavy with a full screen width and compact height
Declaration
Objective-C
static const HUBComponentCategory HUBComponentCategoryBanner = @"banner"
-
Layout trait for components which width does not fill the screen and is considered compact
Declaration
Objective-C
static const HUBComponentLayoutTrait _Nonnull HUBComponentLayoutTraitCompactWidth = @"compactWidth"
-
Layout trait for components which width fills the screen
Declaration
Objective-C
static const HUBComponentLayoutTrait _Nonnull HUBComponentLayoutTraitFullWidth = @"fullWidth"
-
Layout trait for components which are stackable on top of each other, without any margin in between
Declaration
Objective-C
static const HUBComponentLayoutTrait _Nonnull HUBComponentLayoutTraitStackable = @"stackable"
-
Layout trait for components which should be presented on rows which have equal left and right margins
Declaration
Objective-C
static const HUBComponentLayoutTrait _Nonnull HUBComponentLayoutTraitCentered = @"centered"
-
Layout trait for components which are stackable on top of each other, without any margin in between, regardless of the layout traits the preceding component has
Declaration
Objective-C
static const HUBComponentLayoutTrait _Nonnull HUBComponentLayoutTraitAlwaysStackUpwards = @"alwaysStackUpwards"
-
Default namespace assigned to all components when using the default component fallback handler
This namespace will be used as a default when an application doesn’t supply its own
HUBComponentFallbackHandler
when setting upHUBManager
.Declaration
Objective-C
static NSString *const HUBDefaultComponentNamespace = @"default"