@@ -375,47 +375,3 @@ Draw the architectural diagram of MVVM-C, mentioning responsibilities and main p
3753758 . [ Presentation Model - Martin Fowler] ( https://martinfowler.com/eaaDev/PresentationModel.html )
3763769 . [ Universal Links - Apple Devloper] ( https://developer.apple.com/ios/universal-links/ )
37737710 . [ Universal links in iOS - an article] ( https://medium.com/@abhimuralidharan/universal-links-in-ios-79c4ee038272 )
378-
379-
380-
381- <!-- INSTRUCTOR: SOLUTION TO ACTIVITY 1
382-
383- PART 1: IN App Delegate:
384-
385- func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
386-
387- // create the main navigation controller to be used for our app
388- let navController = UINavigationController()
389-
390- // send that into our coordinator so that it can display view controllers
391- //TODO: pass the navController var into the coordinator property
392- coordinator = MainCoordinator(navigationController: navController)
393-
394- // tell the coordinator to take over control
395- coordinator?.start()
396-
397- // create a basic UIWindow and activate it
398- window = UIWindow(frame: UIScreen.main.bounds)
399- window?.rootViewController = navController
400- window?.makeKeyAndVisible()
401-
402- return true
403- }
404-
405-
406- PART 2: in MainCoordinator:
407-
408- //TODO: Create functions to instantiate other VCs
409- func buySubscription() {
410- let vc = BuyViewController.instantiate()
411- vc.coordinator = self
412- navigationController.pushViewController(vc, animated: true)
413- }
414-
415- func createAccount() {
416- let vc = CreateAccountViewController.instantiate()
417- vc.coordinator = self
418- navigationController.pushViewController(vc, animated: true)
419- }
420-
421- -->
0 commit comments