A class that specifies a geofence used to trigger the alarm of a calendar item.


class EKStructuredLocation : EKObject


Use init(title:) to create a new structured location, then set it to the structuredLocation property of an EKAlarm object.


Creating Structured Locations

init(title: String)

Creates a new structured location with the specified title.

init(mapItem: MKMapItem)

Creates a new structured location with the specified map item.

Accessing Structured Location Properties

var title: String?

The title of the location.

var radius: Double

A minimum distance from the core location that would trigger the alarm or reminder.


Inherits From

See Also


Setting an Alarm

Alert users of events and reminders with an alarm.

class EKAlarm

A class that represents an alarm.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software