Code review
This commit is contained in:
parent
433dc21810
commit
6eeed69346
|
|
@ -97,8 +97,8 @@ git submodule add git@github.com:TouchInstinct/BuildScripts.git build-scripts
|
|||
git submodule update --init
|
||||
|
||||
# final clean up
|
||||
rm Gemfile*
|
||||
rm Brewfile*
|
||||
rm Gemfile*
|
||||
rm Brewfile*
|
||||
rm project.yml
|
||||
|
||||
# commit
|
||||
|
|
|
|||
|
|
@ -8,5 +8,4 @@ Networking
|
|||
Protocols
|
||||
Resources/Localization
|
||||
Realm
|
||||
Services
|
||||
Views
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
source 'https://rubygems.org'
|
||||
gem 'bundler'
|
||||
gem 'mustache'
|
||||
gem 'generamba'
|
||||
gem 'generamba'
|
||||
|
|
|
|||
|
|
@ -7,6 +7,24 @@ final class AppDelegate: UIResponder, UIApplicationDelegate {
|
|||
|
||||
var window: UIWindow?
|
||||
|
||||
lazy var appWindow: UIWindow = {
|
||||
let window = UIWindow(frame: UIScreen.main.bounds)
|
||||
|
||||
self.window = window
|
||||
|
||||
return window
|
||||
}()
|
||||
|
||||
static var shared: AppDelegate {
|
||||
let delegate = UIApplication.shared.delegate
|
||||
|
||||
guard let appDelegate = delegate as? AppDelegate else {
|
||||
fatalError("Cannot cast \(type(of: delegate)) to AppDelegate")
|
||||
}
|
||||
|
||||
return appDelegate
|
||||
}
|
||||
|
||||
func application(_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
import UIKit
|
||||
|
||||
struct NavigationService {
|
||||
static var appWindow: UIWindow {
|
||||
return AppDelegate.shared.appWindow
|
||||
}
|
||||
}
|
||||
|
|
@ -2,6 +2,8 @@ name: {{project_name}}
|
|||
options:
|
||||
createIntermediateGroups: true
|
||||
xcodeVersion: 9.2
|
||||
usesTabs: false
|
||||
indentWidth: 4
|
||||
deploymentTarget:
|
||||
iOS: "{{deployment_target}}"
|
||||
configs:
|
||||
|
|
|
|||
Loading…
Reference in New Issue