Am trying to use the new ContinuousClock feature in Swift 5.7 using Xcode 14.0 (14A309) in a command line app with with the statement

let clock = ContinuousClock()

I get the following error:

Cannot find 'ContinuousClock' in scope

Is there an import missing (I'm importing Foundation)? The apple docs show its in Swift Standard Library which isn't really an import..That doc page also list it as beta, but the release announcement shows it as implemented.

Clues?

0

There are 0 best solutions below