Skip to content

Instantly share code, notes, and snippets.

View mscharl's full-sized avatar

Michael Scharl mscharl

View GitHub Profile
@mscharl
mscharl / Swift Events
Created November 1, 2016 10:36 — forked from ColinEberhardt/Swift Events
An eventing mechanism for Swift
/// An object that has some tear-down logic
public protocol Disposable {
func dispose()
}
/// An event provides a mechanism for raising notifications, together with some
/// associated data. Multiple function handlers can be added, with each being invoked,
/// with the event data, when the event is raised.
public class Event<T> {
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">