SyntaxFix
Write A Post
Hire A Developer
Questions
I have tried this snippet (in Xcode 8 Beta 6), and it is working fine.
let date1 = Date() let date2 = Date().addingTimeInterval(100) if date1 == date2 { ... } else if date1 > date2 { ... } else if date1 < date2 { ... }