caiyue1993 / IceCream

Sync Realm Database with CloudKit
MIT License
1.94k stars 245 forks source link

How to ignore an Object with specific type sync to cloud? #272

Open WilliamZhangWH opened 1 year ago

WilliamZhangWH commented 1 year ago

For Example:

I have an Object called 'Provider'

open class Provider: Object {
    @objc dynamic public var isDeleted = false

    @objc dynamic var id: String = UUID().uuidString
    @objc dynamic var name: String = ""
    @objc dynamic var type = ProviderType.Local.rawValue (👈🏻 Ignore '.Local' type Object sync to cloud)
}

@caiyue1993 Please help me.

aehlke commented 5 months ago

I recently added this capability in my fork

https://github.com/lake-of-fire/BigSyncKit