This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//To prevent the 4-5 seconds lags when you show the keyboard for the first time | |
import UIKit | |
extension UIApplication { | |
func cacheKeyboard() | |
{ | |
let textField = UITextField() | |
if let window = windows.last { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Coordinator { | |
let window: UIWindow | |
let navCtrl: UINavigationController? | |
func start() { | |
presentWelcomeScreen() | |
} | |
private func presentWelcomeScreen() { | |
let vc = WelcomeScreenViewController() // Instanciate from code, XIB, Storyboard, whatever your jam is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CrashlyticsDestination.swift | |
// | |
// Created by Jim Rutherford on 2015-12-10. | |
// | |
import UIKit | |
import Crashlytics | |
public class CrashlyticsDestination: BaseDestination { |