SyntaxFix
Write A Post
Hire A Developer
Questions
Another way to do it:
switch date1.compare(date2) { case .orderedAscending: break case .orderedDescending: break; case .orderedSame: break }