Created
December 7, 2015 01:01
-
-
Save nolili/5d727602a69718b8e001 to your computer and use it in GitHub Desktop.
Swift getter/setter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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