Hi, I am trying to write an application in Swift and using Realm. The application is something like a fitness tracker. Here is my data model:
class Meditation: Object { dynamic var name = "" dynamic var count = 0 dynamic var targetAmount = 0 dynamic var malasStep = 108 dynamic var id = 0 dynamic var imageName = "" dynamic var date = NSDate() override class func primaryKey() -> String? { return "id" } I need to display the number (count) and date in the statistics. That is for every day. For example 10/15/2016 - 200, 10/16/2016 - 100. But the amount (300) is saved in the database. And I can not display the amount for each day.
Prompt can somehow save everything into one entity, but so that each save of the count and date fields can be displayed.