Skip to content

Instantly share code, notes, and snippets.

@nolili
Created December 7, 2015 01:01
Show Gist options
  • Save nolili/5d727602a69718b8e001 to your computer and use it in GitHub Desktop.
Save nolili/5d727602a69718b8e001 to your computer and use it in GitHub Desktop.
Swift getter/setter
var <# name #>: <# type #> {
get {
return <# value #>
}
set(<# newValue #>) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment