Start a new topic
Answered

how we use kinvey for swift 4

KCSAppdataStore.storeWithOption  getting error  in swift 

Please provide any documents 



Best Answer

Wasim,


You shouldn't be using KCSAppdataStore because it was present in V1(Objective C) iOS SDKs which are deprecated now and we do not support it.


You should be using V3 (Swift) iOS SDK. Please go through this link to get started with Kinvey using Swift 4. Let me know if you face any issues.



Thanks,

Pranav


Answer

Wasim,


You shouldn't be using KCSAppdataStore because it was present in V1(Objective C) iOS SDKs which are deprecated now and we do not support it.


You should be using V3 (Swift) iOS SDK. Please go through this link to get started with Kinvey using Swift 4. Let me know if you face any issues.



Thanks,

Pranav

Wasim,


Please go through this link thoroughly to implement 'data store' and 'queries' using Swift 4. Let me know if you face any issues while implementing.


Thanks,

Pranav

I want to convert this code into swift 4 


KCSAppdataStore * bookStore = [KCSAppdataStore storeWithOptions:@{KCSStoreKeyCollectionName: @"book",

                                         KCSStoreKeyCollectionTemplateClass : [bookSubscription class]}];

KCSQuery *userQuery= [KCSQuery queryOnField:@"book_id" withExactMatchForValue:[[KCSUser activeUser] getValueForAttribute:KCSUserKeyID]];


Login or Signup to post a comment