mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-04-23 09:18:33 +02:00
pokedex demo
This commit is contained in:
@@ -32,12 +32,7 @@ extension Modern.PlacemarksDemo {
|
||||
"annotation",
|
||||
customGetter: { object, field in
|
||||
|
||||
Modern.PlacemarksDemo.Place.Annotation(
|
||||
latitude: object.$latitude.value,
|
||||
longitude: object.$longitude.value,
|
||||
title: object.$title.value,
|
||||
subtitle: object.$subtitle.value
|
||||
)
|
||||
Modern.PlacemarksDemo.Place.Annotation(object)
|
||||
},
|
||||
customSetter: { object, field, newValue in
|
||||
|
||||
@@ -115,6 +110,16 @@ extension Modern.PlacemarksDemo {
|
||||
self.title = title
|
||||
self.subtitle = subtitle
|
||||
}
|
||||
|
||||
fileprivate init(_ object: ObjectProxy<Modern.PlacemarksDemo.Place>) {
|
||||
|
||||
self.coordinate = .init(
|
||||
latitude: object.$latitude.value,
|
||||
longitude: object.$longitude.value
|
||||
)
|
||||
self.title = object.$title.value
|
||||
self.subtitle = object.$subtitle.value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user