Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
msaps committed Mar 20, 2017
1 parent 62d39a8 commit 22b1281
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Docs/ADVANCED_CUSTOMISATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,23 @@ override func usePreferredIndicatorStyle() -> Bool {
}

override func constructTabBar(items: [TabmanBarItem]) {
super.constructTabBar(items: items)

// create your bar here
}

override func addIndicatorToBar(indicator: TabmanIndicator) {
// add the indicator to the bar here
}

override func update(forPosition position: CGFloat,
direction: PageboyViewController.NavigationDirection,
minimumIndex: Int, maximumIndex: Int) {
direction: PageboyViewController.NavigationDirection,
indexRange: Range<Int>,
bounds: CGRect) {
super.update(forPosition: position, direction: direction,
minimumIndex: minimumIndex, maximumIndex: maximumIndex)
indexRange: Range<Int>,
bounds: CGRect)

// update your bar for a positional update here
// update your bar contents for a positional update here
}

override func update(forAppearance appearance: Appearance,
Expand Down
3 changes: 3 additions & 0 deletions Sources/Tabman/TabmanBar/TabmanBar+Protocols.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public protocol TabmanBarLifecycle: TabmanAppearanceUpdateable {
/// - Parameter items: The items to display.
func constructTabBar(items: [TabmanBarItem])

/// Add the indicator to the bar.
///
/// - Parameter indicator: The indicator to add.
func addIndicatorToBar(indicator: TabmanIndicator)

/// Update the tab bar for a positional update.
Expand Down

0 comments on commit 22b1281

Please sign in to comment.