mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-11-01 13:23:37 -04:00
added files via upload
This commit is contained in:
35
Tweaks/Alderis/Demo/Alderis Demo/AppDelegate.swift
Normal file
35
Tweaks/Alderis/Demo/Alderis Demo/AppDelegate.swift
Normal file
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// AppDelegate.swift
|
||||
// Alderis Demo
|
||||
//
|
||||
// Created by Adam Demasi on 12/3/20.
|
||||
// Copyright © 2020 HASHBANG Productions. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
@UIApplicationMain
|
||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
var window: UIWindow?
|
||||
|
||||
// swiftlint:disable:next line_length
|
||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
|
||||
window = UIWindow(frame: UIScreen.main.bounds)
|
||||
window!.tintColor = UIColor(hue: 0.939614, saturation: 0.811765, brightness: 0.333333, alpha: 1)
|
||||
|
||||
let tabBarController = UITabBarController()
|
||||
let viewController = UINavigationController(rootViewController: FirstViewController())
|
||||
if #available(iOS 13, *) {
|
||||
let tabIcon = UIImage(systemName: "paintbrush.fill")?.withBaselineOffset(fromBottom: 2)
|
||||
viewController.tabBarItem = UITabBarItem(title: "Alderis Demo", image: tabIcon, tag: 0)
|
||||
}
|
||||
tabBarController.viewControllers = [viewController]
|
||||
|
||||
window!.rootViewController = tabBarController
|
||||
window!.makeKeyAndVisible()
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user