Community코딩 & 개발github.com

dpearson2699/eventkit

EventKit 및 EventKitUI를 사용하여 캘린더 일정과 미리 알림을 생성, 조회 및 관리합니다. 사용자 캘린더에 이벤트 추가, 미리 알림 생성, 반복 규칙 설정, 캘린더 또는 미리 알림 접근 권한 요청, 이벤트 편집기 표시, 캘린더 선택, 알람 처리, 캘린더 변경 사항 관찰, EKEventStore, EKEvent, EKReminder, EKCalendar, EKRecurrenceRule, EKEventEditViewController, EKCalendarChooser 또는 EventKitUI 뷰 작업 시 사용합니다.

eventkit란 무엇인가요?

이 스킬은 iOS/macOS 애플리케이션에서 EventKit 및 EventKitUI 프레임워크를 활용하여 캘린더 이벤트와 미리 알림을 생성, 조회, 관리할 수 있도록 지원합니다. 사용자가 캘린더에 이벤트를 추가하거나, 미리 알림을 생성 및 편집하고, 반복 규칙을 설정하며, 접근 권한을 요청하는 등의 작업을 손쉽게 수행할 수 있습니다. 또한, EKEventEditViewController 및 EKCalendarChooser 같은 EventKitUI 뷰를 통해 네이티브 UI를 제공하므로, 개발자는 복잡한 캘린더 로직을 직접 구현하지 않고도 강력한 일정 관리 기능을 통합할 수 있습니다. 주요 사용 사례로는 알람 설정, 캘린더 변경 사항 관찰, 권한 상태 확인 및 요청 등이 있으며, macOS와 iOS 플랫폼 모두에서 동작합니다.

지원 대상~Claude Code~Codex CLI~Cursor
Part ofMobile
npx skills add https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/eventkit

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

eventkit은(는) 무엇을 하나요?

EventKit 및 EventKitUI를 사용하여 캘린더 일정과 미리 알림을 생성, 조회 및 관리합니다. 사용자 캘린더에 이벤트 추가, 미리 알림 생성, 반복 규칙 설정, 캘린더 또는 미리 알림 접근 권한 요청, 이벤트 편집기 표시, 캘린더 선택, 알람 처리, 캘린더 변경 사항 관찰, EKEventStore, EKEvent, EKReminder, EKCalendar, EKRecurrenceRule, EKEventEditViewController, EKCalendarChooser 또는 EventKitUI 뷰 작업 시 사용합니다.

주요 기능

  • 이벤트 생성 및 관리: EKEventStore를 사용하여 캘린더 이벤트를 생성, 업데이트, 삭제할 수 있습니다.
  • 미리 알림 생성 및 관리: EKReminder를 사용하여 미리 알림을 추가, 수정, 완료 처리할 수 있습니다.
  • 반복 규칙 설정: EKRecurrenceRule을 사용하여 일정 및 미리 알림의 반복 패턴을 정의할 수 있습니다.
  • 접근 권한 요청: 캘린더 및 미리 알림 데이터에 접근하기 위한 권한을 요청하고 상태를 확인할 수 있습니다.
  • EventKitUI 통합: EKEventEditViewController와 EKCalendarChooser를 통해 네이티브 UI를 제공합니다.
  • 알람 및 변경 관찰: 알람을 설정하고, 캘린더 데이터의 변경 사항을 관찰할 수 있습니다.

사용 예시

import EventKit
import EventKitUI

let eventStore = EKEventStore()

eventStore.requestAccess(to: .event) { granted, error in
    if granted {
        let event = EKEvent(eventStore: eventStore)
        event.title = "팀 회의"
        event.startDate = Date()
        event.endDate = Date().addingTimeInterval(3600)
        event.calendar = eventStore.defaultCalendarForNewEvents
        
        do {
            try eventStore.save(event, span: .thisEvent)
        } catch {
            print("이벤트 저장 실패: \(error.localizedDescription)")
        }
    } else {
        print("접근 권한이 거부되었습니다.")
    }
}

권한 요청

// 캘린더 접근 권한 요청
eventStore.requestAccess(to: .event) { granted, error in
    // 권한 처리
}

// 미리 알림 접근 권한 요청
eventStore.requestAccess(to: .reminder) { granted, error in
    // 권한 처리
}

// 권한 상태 확인
let status = EKEventStore.authorizationStatus(for: .event)
switch status {
case .authorized:
    print("접근 허용됨")
case .denied:
    print("접근 거부됨")
case .notDetermined:
    print("아직 결정되지 않음")
case .restricted:
    print("제한됨")
@unknown default:
    fatalError()
}

EventKitUI 사용

이벤트 편집기 표시

let event = EKEvent(eventStore: eventStore)
event.title = "신규 이벤트"
let controller = EKEventEditViewController()
controller.eventStore = eventStore
controller.event = event
controller.editViewDelegate = self
present(controller, animated: true, completion: nil)

캘린더 선택기 표시

let chooser = EKCalendarChooser(
    selectionStyle: .single,
    displayStyle: .allCalendars,
    entityType: .event,
    eventStore: eventStore
)
chooser.delegate = self
let navController = UINavigationController(rootViewController: chooser)
present(navController, animated: true, completion: nil)

미리 알림 예시

let reminder = EKReminder(eventStore: eventStore)
reminder.title = "약속 시간"
reminder.calendar = eventStore.defaultCalendarForNewReminders()
let alarm = EKAlarm(absoluteDate: Date().addingTimeInterval(3600))
reminder.addAlarm(alarm)

do {
    try eventStore.save(reminder, commit: true)
} catch {
    print("미리 알림 저장 실패: \(error.localizedDescription)")
}

참고 사항

  • 권한 필수: 앱에서 캘린더 또는 미리 알림 데이터에 접근하려면 먼저 사용자에게 권한을 요청해야 합니다.
  • 백그라운드 제한: EventKit 작업은 기본적으로 메인 스레드에서 수행하는 것이 좋습니다. 백그라운드 스레드에서 EventStore를 사용할 경우 적절한 스레드 세이프 처리가 필요합니다.
  • 테스트 환경: 시뮬레이터에서는 캘린더 데이터가 제한적일 수 있으므로 실제 기기에서 테스트하는 것을 권장합니다.

지원 플랫폼

  • iOS 6.0 이상
  • macOS 10.8 이상
  • watchOS 2.0 이상 (제한적 지원)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

dpearson2699/accessorysetupkit

Discover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions.

dpearson2699/activitykit

Implement, review, or improve Live Activities and Dynamic Island experiences in iOS apps using ActivityKit. Use when building real-time updating widgets for the Lock Screen and Dynamic Island — delivery tracking, sports scores, ride-sharing status, workout timers, media playback, or any time-sensitive information that updates in real time. Also use when working with ActivityKit, ActivityAttributes, Activity lifecycle (request/update/end), Dynamic Island layouts (compact/minimal/expanded), push-to-update Live Activities, or Lock Screen live widgets.

dpearson2699/adattributionkit

Measure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement.

dpearson2699/alarmkit

Implement AlarmKit alarms and countdown timers for iOS and iPadOS with Lock Screen, Dynamic Island, and Apple Watch system UI. Covers AlarmManager scheduling, AlarmAttributes and AlarmPresentation, AlarmButton stop and snooze actions, authorization, state observation, and Live Activity integration. Use when building wake-up alarms, countdown timers, or alarm-style alerts that need Apple's system alarm experience.

dpearson2699/app-clips

Build iOS App Clips with invocation URLs, App Clip Codes, NFC, QR codes, Safari banners, Maps, Messages, target setup, App Store Connect experiences, size/capability constraints, NSUserActivity routing, SKOverlay promotion, App Group/keychain handoff, ephemeral notifications, location confirmation, and full-app migration. Use when creating App Clips or wiring App Clip invocation, experience configuration, or full-app handoff.

dpearson2699/app-intents

Implement App Intents for Siri, Shortcuts, Spotlight, widgets, Control Center, and Apple Intelligence on iOS. Covers AppIntent actions, AppEntity and EntityQuery models, AppShortcutsProvider phrases, IndexedEntity Spotlight indexing, WidgetConfigurationIntent, SnippetIntent, and assistant schemas. Use when exposing app actions or entities to system surfaces.

dpearson2699/apple-on-device-ai

Integrate on-device AI using Foundation Models framework, Core ML, and open-source LLM runtimes on Apple Silicon. Covers Foundation Models (LanguageModelSession, @Generable, @Guide, SystemLanguageModel, structured output, tool calling), Core ML (coremltools, model conversion, quantization, palettization, pruning, Neural Engine, MLTensor), MLX Swift (transformer inference, unified memory), and llama.cpp (GGUF, cross-platform LLM). Use when building tool-calling AI features, working with guided generation schemas, converting models, or running on-device inference.

dpearson2699/appmigrationkit

Transfer app data to or from other platforms using AppMigrationKit. Use when implementing system-orchestrated one-time migration between iOS and Android or another platform, building an AppMigrationExtension, packaging transportable resources with ResourcesArchiver, importing resources on the destination device, reporting import progress, handling migration errors and app group cleanup, checking MigrationStatus, or testing migration code with AppMigrationTester.

dpearson2699/app-store-review

Prepare for App Store review and prevent rejections. Covers App Store review guidelines, app rejection reasons, PrivacyInfo.xcprivacy privacy manifest requirements, required API reason codes, in-app purchase IAP and StoreKit rules, App Store Guidelines compliance, ATT App Tracking Transparency, EU DMA Digital Markets Act, HIG compliance checklist, app submission preparation, review preparation, metadata requirements, entitlements, widgets, and Live Activities review rules. Use when preparing for App Store submission, fixing rejection reasons, auditing privacy manifests, implementing ATT consent flow, configuring StoreKit IAP, or checking HIG compliance.

dpearson2699/audioaccessorykit

Support audio accessory features like automatic switching using AudioAccessoryKit. Use when implementing automatic audio routing for paired accessories, registering audio accessory configuration from the container app, updating placement or connected audio source identifiers from an app extension, or handling AccessoryControlDevice capabilities and errors.

dpearson2699/authentication

Implement iOS authentication flows with AuthenticationServices and LocalAuthentication. Use when building Sign in with Apple, passkey/WebAuthn registration or sign-in with ASAuthorizationPlatformPublicKeyCredentialProvider, ASAuthorizationController credential state and revocation handling, ASWebAuthenticationSession OAuth or third-party login, Password AutoFill, identity-token server validation, or local biometric re-authentication with LAContext.

dpearson2699/avkit

Create media playback experiences using AVKit. Use when adding video players with AVPlayerViewController, enabling Picture-in-Picture, routing media with AirPlay, using SwiftUI VideoPlayer views, configuring transport controls, displaying subtitles and closed captions, or integrating AVFoundation playback with system UI.

dpearson2699/background-processing

Schedule and execute background work on iOS using BGTaskScheduler. Use when registering BGAppRefreshTask for short background fetches, BGProcessingTask for long-running maintenance, BGContinuedProcessingTask (iOS 26+) for foreground-started work that continues in background, background URLSession downloads, or background push notifications. Covers Info.plist configuration, expiration handling, task completion, and debugging with simulated launches.

dpearson2699/browserenginekit

Build alternative browser engines using BrowserEngineKit. Use when developing a non-WebKit browser engine for iOS/iPadOS in supported regions, managing web content/rendering/networking extension processes, configuring GPU and networking process capabilities, checking alternative-engine device eligibility, or reviewing BrowserEngineKit entitlements and Info.plist setup.

dpearson2699/callkit

Implement VoIP calling with CallKit and PushKit. Use when building incoming/outgoing call flows, registering for VoIP push notifications, configuring CXProvider and CXCallController, handling call actions, coordinating audio sessions, or creating Call Directory extensions for caller ID and call blocking.

dpearson2699/carplay

Build CarPlay-enabled apps using the CarPlay framework. Use when creating navigation, audio, communication, EV charging, parking, or food ordering apps for the car display, working with CPTemplateApplicationScene, CPInterfaceController template hierarchies, CPListTemplate, CPMapTemplate, CPNowPlayingTemplate, configuring CarPlay entitlements, or integrating with CarPlay Simulator for testing.

dpearson2699/cloudkit

Implement, review, or improve CloudKit and iCloud sync in iOS/macOS apps. Use when working with CKContainer, CKRecord, CKQuery, CKSubscription, CKSyncEngine, CKShare, NSUbiquitousKeyValueStore, or iCloud Drive file coordination; when syncing SwiftData models via ModelConfiguration with cloudKitDatabase; when handling CKError codes for conflict resolution, network failures, or quota limits; or when checking iCloud account status before performing sync operations.

dpearson2699/contacts-framework

Read, create, update, and pick contacts using the Contacts and ContactsUI frameworks. Use when fetching contact data, saving new contacts, wrapping CNContactPickerViewController in SwiftUI, handling contact permissions, or working with CNContactStore fetch and save requests.

dpearson2699/core-bluetooth

Build direct Bluetooth Low Energy workflows with Core Bluetooth. Use when implementing BLE central or peripheral GATT communication, scanning or connecting with CBCentralManager, discovering services and characteristics, reading/writing/subscribing with CBPeripheral, publishing local services with CBPeripheralManager, handling Bluetooth authorization, background BLE modes, state restoration, write flow control, or CBUUID-based workflows. For privacy-preserving accessory setup/picker flows, use accessorysetupkit first and return here for post-setup GATT communication.

dpearson2699/coreml

Integrate Core ML models in iOS apps for on-device machine learning inference. Covers model loading (.mlmodel, .mlpackage, .mlmodelc), predictions with auto-generated classes and MLFeatureProvider, compute unit configuration (CPU, GPU, Neural Engine), MLTensor, VNCoreMLRequest, MLComputePlan, multi-model pipelines, and deployment strategies. Use when loading Core ML models, making predictions, configuring compute units, or profiling model performance.

관련 스킬