Skip to content

Instantly share code, notes, and snippets.

@ConorBrady
Created April 26, 2017 10:34
Show Gist options
  • Save ConorBrady/2e5507d2e1dbcf7afb0f6fe62572a205 to your computer and use it in GitHub Desktop.
Save ConorBrady/2e5507d2e1dbcf7afb0f6fe62572a205 to your computer and use it in GitHub Desktop.
class Foo {
var bar: String
init() { }
}
// Before
let foo = Foo()
foo.bar = "bar"
// After
let foo = Foo() <== {
$0.bar = "bar"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment