eventkit 0.3.4

Safe Rust bindings for Apple's EventKit framework — events, reminders, calendars, sources, participants, structured locations, and virtual conference descriptors on macOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use eventkit::prelude::*;

#[test]
fn reminder_roundtrip_preserves_priority() {
    let store = EKEventStore::new().expect("store");
    let reminder = EKReminder::new("Ship 0.2.1").with_priority_kind(EKReminderPriority::High);
    let roundtrip = reminder.roundtrip_in(&store).expect("roundtrip");
    assert_eq!(roundtrip.priority_kind(), EKReminderPriority::High);
}

#[test]
fn reminder_date_components_helper_sets_values() {
    let components = NSDateComponents::date(2026, 1, 15).with_time(9, 30, 0);
    assert_eq!(components.year, Some(2026));
    assert_eq!(components.hour, Some(9));
}