Skip to content

Commit 6a79a88

Browse files
committed
api name clarity
1 parent 757a871 commit 6a79a88

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Example/IceCream_Example/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2222
syncEngine = SyncEngine(objects: [
2323
SyncObject(type: Dog.self),
2424
SyncObject(type: Cat.self),
25-
SyncObject(type: Person.self, uObjectClassType: Cat.self)
25+
SyncObject(type: Person.self, uListElementType: Cat.self)
2626
])
2727

2828
/// If you wanna test public Database, comment the above syncEngine code and uncomment the following one

IceCream/Classes/SyncObject.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public final class SyncObject<T, U, V, W> where T: Object & CKRecordConvertible
3232
public init(
3333
realmConfiguration: Realm.Configuration = .defaultConfiguration,
3434
type: T.Type,
35-
uObjectClassType: U.Type? = nil,
36-
vObjectClassType: V.Type? = nil,
37-
wObjectClassType: W.Type? = nil
35+
uListElementType: U.Type? = nil,
36+
vListElementType: V.Type? = nil,
37+
wListElementType: W.Type? = nil
3838
) {
3939
self.realmConfiguration = realmConfiguration
4040
}

0 commit comments

Comments
 (0)