How to slice an array into a custom time period?

前端 未结 0 552
慢半拍i
慢半拍i 2021-01-23 06:45

I am using this Array extension to slice [HKQuantitySample] e.g.

let test = samplesWithoutDups.sliced(by: [.year, .month, .day], for: \\.startDate

相关标签:
回答
  • 消灭零回复
提交回复
热议问题