I'm having another hard time with the library as I cannot save EventData
objects (Realm, CoreData).
To be able to store events, EventData
has to inherit from Object (Realm) or NSObject (CoreData), what makes redundant conformance to CustomStringConvertible, Equatable, Hashable
protocols:
![zrzut ekranu 2018-06-29 o 16 09 41](https://user-images.githubusercontent.com/39163036/42096936-ff5e7f1a-7bb6-11e8-9f40-2d23f9ce4bf4.png)
But even if I remove 3 protocols mentiones above, I'm still getting about 12 errors, like:
Initializer 'init(id:title:startDate:endDate:location:color:)' with Objective-C selector 'initWithId:title:startDate:endDate:location:color:' conflicts with previous declaration with the same Objective-C selector
Method 'configureGradient' with Objective-C selector 'configureGradient:' conflicts with previous declaration with the same Objective-C selector
and so on...:
![zrzut ekranu 2018-06-29 o 16 13 05](https://user-images.githubusercontent.com/39163036/42097053-57ff9c8a-7bb7-11e8-9527-9c759a57eb13.png)
the question is... how do you store them !? I'm going out of my head trying to find out how to add events to my Realm / CoreData database.
Could you give me a hint, please?