Swift Snippet: Comparing NSDate
November 16, 2015
There may be a really good reason why NSDate
doesn't implement the Comparator
protocol. Until I can find out why, this is a snippet that enables the use of >
, <
, =>
and <=
with NSDate
.