You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
797 B
34 lines
797 B
// |
|
// 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)) |
|
} |
|
|
|
|
|
}
|
|
|