Я хочу создать EKEvent, чтобы добавить его в календарь устройства.Есть ли способ установить уникальный идентификатор (который пользователь не может редактировать в приложении «Календарь») для этого события, чтобы я мог идентифицировать его или сопоставить с моим событием.
Я создаю событие, подобное этому
let event = EKEvent.init(eventStore: eventStore)
event.title = "My location"
event.location = "Location Address"
// Setting Start - End Date
event.startDate = Date()
event.endDate = Date()
do {
// Saving Events
try eventStore.save(event, span: .thisEvent, commit: true)
let message = "Schedule has been added to your device's calendar."
showAlert(title: kFVApplicationTitle, message: message)
} catch {
let message = "Schedule could not be added to your device's calendar."
showAlert(title: kFVApplicationTitle, message: message)
}