This file contains 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
// swift-tools-version: 5.7 | |
// The swift-tools-version declares the minimum version of Swift required to build this package. | |
import PackageDescription | |
let package = Package( | |
name: "Dependencies", | |
platforms: [ | |
.iOS(.v13), | |
], |
This file contains 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
// Inspired by https://github.com/icanzilb/EventBlankApp | |
extension UIStoryboard { | |
func instantiateViewController<T: UIViewController>(_ type: T.Type) -> T { | |
return instantiateViewController(withIdentifier: type.classIdentifier) as! T | |
} | |
} | |
extension UIViewController { | |
static var classIdentifier: String { return String(describing: self) } |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |