Last active
November 11, 2016 05:15
-
-
Save iosdevben/8e9b67eb4882897b939be89089d0d17f to your computer and use it in GitHub Desktop.
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
struct ViewModel { | |
var person: Person | |
var nameAndAddress: String { | |
return "\(person.firstName)\(person.lastName), \(person.address)" | |
} | |
init() { | |
person = Person(firstName: "John", | |
lastName: "Appleseed", | |
address: "1 Infinite Loop, Cupertino, CA") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment