Trying to spend a little bit more time working on my own projects. Here's the first commit. A quick storyboard sketch of the all the principle screens in the app - splash screen, menu, options, level select, game. Navigation is by buttons. I didn't hook up segues so instead control navigation by instantiating my views from the storyboard and calling show
to transition between them.
Each ViewController
in the storyboard has a unique identifier that maps to a value in an enum. I’ve added a helper that includes an extension to UIViewController
to handle the crossDissolve. All I need to do is pass a valid identifier to it and I’m done. To go back, I can call dismiss
(e.g. dismiss(animated: true, completion: nil)
).