Optional
@_frozen
enum Optional<Wrapped> : ExpressibleByNilLiteral
-
This function checks that selected date is less than today or not
Declaration
Swift
func isMinus() -> Bool
Return Value
Result in boolean
-
This function returns if given date is same as another
Declaration
Swift
func isSame(_ date: Date?) -> Bool
Parameters
date
Date to compare
Return Value
Result in boolean