I use this method to compare two dates in one day is,but it look so long. is there another way to compare the two dates if is the same day??
if Calendar.current.component(.day, from: (me.last?.day)!) == Calendar.current.component(.day, from: Date())