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.
35 lines
799 B
35 lines
799 B
1 year ago
|
//
|
||
|
// Application.swift
|
||
1 year ago
|
// FireBoltt
|
||
1 year ago
|
//
|
||
|
// 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))
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|