Instantly share code, notes, and snippets.

echo "Updating Swiftlint..."
brew uninstall --force swiftlint
brew install swiftlint
brew switch swiftlint 0.18.1
echo "Creating Xcodeproj..."
swift package generate-xcodeproj \
echo "Xcodebuild tests!"
View RAC ViewModel Action on button pressed
import Result
import ReactiveCocoa
import ReactiveSwift
import UIKit
import XCPlayground
struct ViewModel {
// do not expose the implementation detail
private let (codeSignal, codeSink) = Signal<String, NoError>.pipe()
View CustomFontPlayground.swift
//: Playground - noun: a place where people can play
import UIKit
let fontURL = NSBundle.mainBundle().URLForResource("PillGothic300mg-bold", withExtension: "ttf")
CTFontManagerRegisterFontsForURL(fontURL!, CTFontManagerScope.Process, nil)
var pillGothicFontBold = UIFont(name: "PillGothic300mg-bold", size: 30)
var attrs = [NSFontAttributeName : pillGothicFontBold!,