Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
override func viewDidLoad() {
super.viewDidLoad()
segmentedControl.initUI()
segmentedControl.selectedSegmentIndex = TabIndex.firstChildTab.rawValue
displayCurrentTab(TabIndex.firstChildTab.rawValue)
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
if let currentViewController = currentViewController {
currentViewController.viewWillDisappear(animated)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.