Created
November 4, 2020 11:56
-
-
Save laevandus/97ee62368009bf6b4b8b3cec3c2aad4f 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
final class Package: NSObject { | |
@objc dynamic var recipient = Person() | |
@objc dynamic var sender = Person() | |
@objc dynamic var contents = [PackageContent]() | |
} | |
final class Person: NSObject { | |
@objc dynamic var firstName: String = "" | |
@objc dynamic var lastName: String = "" | |
@objc dynamic var postalAddress = CNPostalAddress() | |
} | |
final class PackageContent: NSObject { | |
init(title: String, weight: Int) { | |
self.title = title | |
self.weight = weight | |
} | |
let title: String | |
let weight: Int | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment