renamed Field.Computed to Field.Virtual to distinguish from Field.Derived

This commit is contained in:
John Estropia
2020-02-06 09:33:08 +09:00
parent e9c3312612
commit f0f4049798
10 changed files with 54 additions and 34 deletions

View File

@@ -100,14 +100,14 @@ class Person: CoreStoreObject {
@Field.Stored("name", customSetter: Person.setName(_:_:))
var name: String = ""
@Field.Computed(
@Field.Virtual(
"displayName",
customGetter: Person.getDisplayName(_:),
affectedByKeyPaths: Person.keyPathsAffectingDisplayName()
)
var displayName: String?
@Field.Computed(
@Field.Virtual(
"customType",
customGetter: Person.getCustomField(_:)
)