Code review

This commit is contained in:
Igor Kislyuk 2018-04-02 17:26:55 +03:00
parent 433dc21810
commit 6eeed69346
6 changed files with 31 additions and 4 deletions

View File

@ -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

View File

@ -8,5 +8,4 @@ Networking
Protocols
Resources/Localization
Realm
Services
Views

View File

@ -1,3 +1,4 @@
source 'https://rubygems.org'
gem 'bundler'
gem 'mustache'
gem 'generamba'
gem 'generamba'

View File

@ -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 {

View File

@ -0,0 +1,7 @@
import UIKit
struct NavigationService {
static var appWindow: UIWindow {
return AppDelegate.shared.appWindow
}
}

View File

@ -2,6 +2,8 @@ name: {{project_name}}
options:
createIntermediateGroups: true
xcodeVersion: 9.2
usesTabs: false
indentWidth: 4
deploymentTarget:
iOS: "{{deployment_target}}"
configs: