Information about the user's location during a specific period of time.
- iOS 8.0+
- Mac Catalyst 13.0+Beta
- Core Location
CLVisit object encapsulates information about places that the user has been. Visit objects are created by the system and delivered by the
CLLocation object to its delegate after you start the delivery of events. The visit includes the location where the visit occurred and information about the arrival and departure times as relevant. You do not create visit objects directly, nor should you subclass
Visit objects contain as much information about the visit as possible but may not always include both the arrival and departure times. For example, when the user arrives at a location, the system may send an event with only an arrival time. When the user departs a location, the event can contain both the arrival time (if your app was monitoring visits prior to the user’s arrival) and the departure time.