* used `dispatchWorkItem:DispatchWorkItem? = nil` to replace `rxTimer:Timer? = nil` * changed `var crEvents:Results<CREvent>!` to `lazy var crEvents:Results<CREvent>` * got all `realm` from `crEvents.realm!` * changed code accordingly * added new notification observer to `.NSCalendarDayChanged` * added code to clean database when `..NSCalendarDayChanged`
* used `dispatchWorkItem:DispatchWorkItem? = nil` to replace `rxTimer:Timer? = nil`
* changed `var crEvents:Results<CREvent>!` to `lazy var crEvents:Results<CREvent>`
* got all `realm` from `crEvents.realm!`
* changed code accordingly
* added new notification observer to `.NSCalendarDayChanged`
* added code to clean database when `..NSCalendarDayChanged`

owenzhao/c2r,owenzhao/c2r