//
//  AppDelegate.swift
//  SurfPlaybookSPM
//
//  Created by Александр Чаусов on 30.04.2021.
//

import UIKit
import SurfPlaybook

@UIApplicationMain
final class AppDelegate: UIResponder, UIApplicationDelegate {

    // MARK: - Properties

    var window: UIWindow?

    // MARK: - UIApplicationDelegate

    func application(_ application: UIApplication,
                     didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.rootViewController = UIViewController()
        window?.makeKeyAndVisible()

        Playbook.shared
            .add(chapter: TestChapter().build())
            .add(uiKitPage: TestUIKitPage())
            .start(from: window)

        return true
    }

}
