Grouping Array of Objects by Custom Time Intervals

后端 未结 0 1979
谎友^
谎友^ 2021-01-26 10:01

I have an array of posts which I currently group by day. I use the below functions to do so;

private func splitDay(from date: Date) -> Date {
    let calendar          


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