Skip to content

Instantly share code, notes, and snippets.

@bartjacobs
Created January 27, 2019 09:52
Show Gist options
  • Save bartjacobs/0ab69132edbc7b2c69a3af9d22dd9857 to your computer and use it in GitHub Desktop.
Save bartjacobs/0ab69132edbc7b2c69a3af9d22dd9857 to your computer and use it in GitHub Desktop.
Five Signs of Code Smell in Swift - 1
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == viewController {
let navigationController = segue.destinationViewController as! UINavigationController
let addViewController = navigationController.viewControllers.first as! AddViewController
addViewController.delegate = self
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment