Skip to content

Instantly share code, notes, and snippets.

@greggjaskiewicz
Created May 1, 2017 14:44
Show Gist options
  • Save greggjaskiewicz/7bf556a50b4f8c7bd2eb0569d430555b to your computer and use it in GitHub Desktop.
Save greggjaskiewicz/7bf556a50b4f8c7bd2eb0569d430555b to your computer and use it in GitHub Desktop.
for element in cells {
    switch element {
    case .one(let typeOne):
        print("\(typeOne.bar1) \(typeOne.foo1) \(typeOne.foo2) ")
    case .two(let typeTwo):
        print("\(typeTwo.fooString) \(typeTwo.foo1) \(typeTwo.barBool) ")
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment