sergdort / CleanArchitectureRxSwift

Example of Clean Architecture of iOS app using RxSwift
MIT License
3.88k stars 494 forks source link

Need to add array of item in CoreData class #51

Open iamitksharma opened 5 years ago

iamitksharma commented 5 years ago

I have conversation service response that contain array of message. Need to added that functionality in CDModelName+Ext.swift to store chat messages.

While adding array I am getting error "Value of type '[Message]' has no member 'sync' "

Response for conversation is something like that { id : 1, message : [ {id:12, message:"test1"}, {id:13, message: "test2"} ] }

sergdort commented 5 years ago

I guess you can sync them one by one or implement a functions similar to this that can sync array of items

iamitksharma commented 5 years ago

Thanks for response. Can you share some sample code. In your sample code, code is there but I am not able to debug because that is not used in your application.