Skip to content

Instantly share code, notes, and snippets.

@jhurray
jhurray / FadeReloadable.swift
Created June 30, 2016 02:36
Reload with fade
import UIKit
protocol FadeReloadable {
func reloadData()
func reloadDataWithFade()
}
extension FadeReloadable where Self: UIView {
private func setAlpha(alpha: CGFloat, completion: (Void -> Void)? = nil) {
@jhurray
jhurray / help_me.swift
Created October 22, 2015 03:24
Help me!
import UIKit
struct typeable<T> {
let value : String = "hello world"
}
protocol inside {
func __myFunction() -> typeable<inside>
}