Skip to content

Instantly share code, notes, and snippets.

View ranmyfriend's full-sized avatar
🦆
Calm

Ranjith ranmyfriend

🦆
Calm
View GitHub Profile
@ranmyfriend
ranmyfriend / Count lines of code in Xcode project
Created March 14, 2021 06:23 — forked from Tokuriku/Count lines of code in Xcode project
Count lines of code in SWIFT Xcode project
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
@ranmyfriend
ranmyfriend / TinyResult.swift
Created August 29, 2018 11:38 — forked from brennanMKE/TinyResult.swift
Tiny Result type in Swift
// 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) }
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"