get current unix timestamp swift ios

Swift
Date().timeIntervalSince1970 // Double
Source

Also in Swift: