// // Application.swift // Lookfit // // Created by lemo. on 2020/3/7. // Copyright © 2020 Sheldon. All rights reserved. // import UIKit final class Application: NSObject { static let shared = Application() var window: UIWindow? let navigator: Navigator private override init() { navigator = Navigator.default super.init() if #available(iOS 15, *) { TableView.appearance().sectionHeaderTopPadding = 0 } } func presentInitialScreen(in window: UIWindow?) { guard let window = window else { return } self.window = window let viewModel = HomeTabBarViewModel() self.navigator.show(segue: .tabs(viewModel: viewModel), sender: nil, transition: .root(in: window)) } }