HessianMad
HessianMad

Reputation: 567

How to use NSTimeInterval in Swift 3

I want to use NSTimeIntervalin Swift 3 but I can't. It seems to exist only in Swift 2.

How can I use NSTimeInterval in Swift 3?

Thanks in advance for your ideas and solutions!

Upvotes: 1

Views: 3709

Answers (1)

Stefan
Stefan

Reputation: 1056

As with many other type identifiers, the NS prefix has been stripped off from NSTimeInterval in Swift 3. So, you can just use TimeInterval.

Upvotes: 10

Related Questions