BPKHorizontalNavigationOptionType
@protocol BPKHorizontalNavigationOptionType <NSObject>
Represents a single navigation option in BPKHorizontalNavigation
.
For common use cases BPKHorizontalNavigationOption
is provided but
by implementing a custom type that conform to this protocol you can
implement custom navigation items.
Make sure you implement isEqual:
from NSObject
too.
See
BPKHorizontalNavigationItemSee
BPKHorizontalNavigationOption-
A tag representing the option, can be used to distinguish options from eachother.
Declaration
Objective-C
@required @property (nonatomic, readonly) NSInteger tag;
Swift
var tag: Int { get }
-
Creates a
UIControl
sublcass to use for rendering this item in aBPKHorizontalNavigation
. In addition to being aUIControl
subclass it should implement theBPKHorizontalNavigationItem
protocol.Declaration
Objective-C
- (nonnull UIControl<BPKHorizontalNavigationItem> *)makeItem;
Swift
func makeItem() -> UIControl & BPKHorizontalNavigationItem