isAfter(_ date: Date) -> Bool

Check if self is after input date.

Parameters

  • date: The date to compare to.

Returns

True if self is after input date, false otherwise.

let date = Date()
let futuredate = date.addingTimeInterval(1)
futuredate.isAfter(date)
// -> true