This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
/// このプロトコルで画面遷移のインターフェースを共通化 | |
protocol Coordinator { | |
func start() | |
} | |
/// 初期起動経路を管理するクラス | |
final class AppCoordinator: Coordinator { | |
// プロパティとしてUIWindowとUINavigationControllerを保持する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
/// 画面遷移に関する処理を担うクラス | |
final class Router { | |
static let shared = Router() | |
private init() {} | |
/// TutorialMenuへモーダル遷移 | |
internal func showTutorialMenu(from: UIViewController) { | |
let toVC = TutorialMenuViewController() |