Skip to content

Commit a0f526a

Browse files
committed
Add documentation for UINavigationBar extensions
1 parent 8ff15de commit a0f526a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Documentation/UINavigationBar.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# UINavigationBar
2+
3+
## Methods
4+
`public func tapTopItem(withTitle title: String)`
5+
6+
Searches the `topItem` of a navigation bar for an item with a
7+
title equal to the parameter `title`. If found, it fires the action
8+
associated with that item.
9+
10+
Raises a `FleetError` if a navigation bar item with the given title
11+
cannot be found, if there in the are no items in the navigation bar,
12+
or if the item's action is not properly set up.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Fleet extends UIKit classes in order to make it easier to test your code's inter
2525
- [UIBarButtonItem](./Documentation/UIBarButtonItem.md) - Provides convenience methods similar to those provided for UIButton.
2626
- [UIAlertController](./Documentation/UIAlertController.md) - Allows specs to simply tap on alert actions in order to test their behavior.
2727
- [UITabBarController](./Documentation/UITabBarController.md) - Provides convenience methods for selecting tabs.
28+
- [UINavigationBar](./Documentation/UINavigationBar.md) - Tap on items in a navigation bar.
2829
- [UITextField](./Documentation/UITextField.md) - Provides convenience methods for entering text. (iOS-only)
2930
- [UISwitch](./Documentation/UISwitch.md) - Provides convenience methods for interacting with switches in test. (iOS-only)
3031
- [UITextView](./Documentation/UITextView.md) - Provides convenience methods for entering text into a text view. (iOS-only)

0 commit comments

Comments
 (0)