Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import Foundation
import ReactiveSwift
final class Pantry {
let jams = MutableProperty([Jam(flavour: .apple)])
func add(jam: Jam) {
struct Jam {
enum Flavour: String {
case apple, orange
let flavour: Flavour
init(flavour: Flavour) {
self.flavour = flavour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment