Skip to content

Instantly share code, notes, and snippets.

@jimrutherford
jimrutherford / CrashlyticsDestination.swift
Created December 10, 2015 21:00
SwiftyBeaver Crashlyitcs Log Destination
//
// CrashlyticsDestination.swift
//
// Created by Jim Rutherford on 2015-12-10.
//
import UIKit
import Crashlytics
public class CrashlyticsDestination: BaseDestination {
@AliSoftware
AliSoftware / Coordinator.swift
Last active July 10, 2022 14:32
Coordinators & StateMachine - Concept
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
//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 {