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
1. Open Terminal | |
2. cd to your Xcode project | |
3. Execute the following when inside your target project: | |
find . -name "*.swift" -print0 | xargs -0 wc -l |
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
// Credit: Hooman Mehr via swift-evolution | |
// https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20171113/041314.html | |
import Foundation | |
public enum Result<Value> { | |
case success(Value) | |
case failure(Error) | |
public init(_ value: Value) { self = .success(value) } |
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
import Foundation | |
import UIKit | |
struct StoryboardIdentifiers { | |
static let ViewController1 = "ViewController1" | |
static let ViewController2 = "ViewController2" | |
static let ViewController3 = "ViewController3" | |
static let ViewController4 = "ViewController4" | |
static let ViewController5 = "ViewController5" | |
static let ViewController6 = "ViewController6" |