Created
August 14, 2014 13:20
-
-
Save justinmakaila/48d5400b7ef3e816631f to your computer and use it in GitHub Desktop.
Readonly properties in Swift
This file contains hidden or 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
public class User: Object { | |
private var _username: String! | |
public var username: String! { | |
return _username | |
} | |
public var password: String! | |
public var fullName: String! | |
public var email: String? | |
private var profileImageUrlString: String! | |
public var profileImageUrl: NSURL { | |
return NSURL(string: self.profileImageUrlString) | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment