CLCircularGeographicCondition not found

I'm attempting to use this sample code in Xcode 16 and iOS 18. I get a compile error indicating "cannot find 'CLCircularGeographicCondition'

The remainder of the sample code does not compile as in the document

  1. the compiler wants "await" before the call to monitor.add
  2. and another "await" before monitor.events

Is there updated sample code for this use case?

That sample snippet is just an example of how you would use certain constructs and would require the rest of your code to have implemented certain other parts of code correctly, imported the correct frameworks, etc.

You can find a working sample project that uses circular regions at Monitoring location changes with Core Location


Argun Tekant /  DTS Engineer / Core Technologies

CLCircularGeographicCondition not found
 
 
Q