Skip to content

Instantly share code, notes, and snippets.

@KaneCheshire
Created July 4, 2018 09:55
Show Gist options
  • Save KaneCheshire/f08a9693c943b81f49c0f8489df9fbcd to your computer and use it in GitHub Desktop.
Save KaneCheshire/f08a9693c943b81f49c0f8489df9fbcd to your computer and use it in GitHub Desktop.
func logIn() {
// Your code to log in
}
enum Tab {
case profile
case settings
}
func selectTabBar(tab: Tab) {
switch tab {
case .profile: // Your code to select the profile tab
case .settings: // Your code to select the settings tab
}
}
func seeSettingsScreen() {
// Your code to assert the settings screen is on-screen
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment