Skip to content

Instantly share code, notes, and snippets.

@wpK
wpK / ReSwiftEffectsExperiment.swift
Last active June 13, 2016 17:00 — forked from Ben-G/ReSwiftEffectsExperiment.swift
ReSwift Allow For Effects - Experiment
//: Playground - noun: a place where people can play
import Cocoa
protocol Action {}
final class Store<State> {
typealias Reducer = (Action, State) -> (State, [Any])
var state: State
@wpK
wpK / TextSecureEntryViewController.swift
Created March 28, 2016 21:57
ASEditableTextNode secureTextEntry Example
import UIKit
import AsyncDisplayKit
class TextSecureEntryViewController: UIViewController {
// MARK: Properties
private let editableTextNode: ASEditableTextNode
// MARK: Lifecycle
@wpK
wpK / WidthTest.swift
Last active March 11, 2016 19:15
AsyncDisplayKit ASLayoutSpec Width
import UIKit
import AsyncDisplayKit
var calculatedWidth: CGFloat = 0
class WidthTestViewController: UIViewController {
// MARK: Properties
private let containerNode: WidthTestContainerNode