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

BPKHorizontalNavigationItem

See

BPKHorizontalNavigationOption
  • tag

    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 a BPKHorizontalNavigation. In addition to being a UIControl subclass it should implement the BPKHorizontalNavigationItem protocol.

    Declaration

    Objective-C

    - (nonnull UIControl<BPKHorizontalNavigationItem> *)makeItem;

    Swift

    func makeItem() -> UIControl & BPKHorizontalNavigationItem