포스트

[WWDC26] Best practices for integrating visual intelligence in your app

이 글은 WWDC 세션의 transcript 와 영상 화면을 Claude Code 로 정리한 글이다.

Visual Intelligence 는 camera 로 비추거나 화면에 떠 있는 것을 system 이 인식해서 검색이나 동작으로 이어 주는 기능이다. 사진 속 물건이든 screenshot 속 포스터든 사용자가 영역을 highlight 하면 system 이 무엇인지 읽고, 그 결과를 Google 같은 검색과 앱들이 제공하는 결과로 보여 준다. 세션 Best practices for integrating visual intelligence in your app 은 System Experience 팀의 ML engineer David 가 진행한다.

올해는 연락처 추가, calendar event 여러 개 저장, medical device logging 같은 action 이 새로 붙고, Visual Intelligence 가 iPad 와 macOS 로도 온다. 세션은 이 흐름 안에 앱이 들어가는 길을 music app 하나를 만들어 가며 보여 준다. album 을 탐색하고, 곧 열릴 concert 를 확인하고, 탭 한 번으로 재생하는 앱이다. 통합점은 두 개다. 하나는 Image Search 로 앱이 Visual Intelligence 에 결과를 내주는 것이고, 다른 하나는 system store 로 Visual Intelligence 가 만든 data 를 앱이 받는 것이다. 순서는 App entity 정의, query 구현, Mac 과 iPad 로 넓히기, 그리고 system store 다.

Visual Intelligence 결과 sheet 의 My Music App 탭에 Piano Book 2 album 과 Lang Lang Concert 가 나란히 나와 있다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

세션이 목표로 잡은 완성 화면이다. 위쪽에 Google 과 My Music App 탭이 있고, 앱 탭 안에 album 하나와 concert 하나가 나란히 놓였다. 그 아래 “More results from My Music App” 버튼이 붙어 있다.

세션을 보면서 눈에 들어온 것은 통합에 필요한 새 API 가 거의 없다는 점이었다. 대부분이 App Intents 로 이미 익숙한 entity, query, OpenIntent 이고, Visual Intelligence 쪽에서 새로 배울 것은 입력 type 하나와 schema 하나 정도다. 나머지는 “결과를 어떻게 다듬어 내주느냐” 에 관한 best practice 다.


Image Search 통합의 구성

Image Search 통합은 App Intents framework 와 Visual Intelligence framework 를 함께 쓴다. 필요한 조각은 셋이다. 결과로 돌려줄 content 를 나타내는 entity, system 이 앱에 물어볼 때 부르는 query, 사용자가 결과를 탭했을 때 앱을 여는 open intent 다.


Image Search란?

사용자가 사진이나 screenshot 에서 영역을 highlight 하면 system 은 그 이미지와 맞는 content 를 달라고 이 기능에 참여한 앱들에게 묻는다. 앱은 provider 로 참여해서 자기 content 중 맞는 것을 entity 로 돌려주고, system 이 그것을 결과 sheet 에 그린다. 비유하자면 system 은 접수 창구이고 앱들은 각자 자기 서가를 뒤져 보는 도서관 사서다. 창구는 질문(이미지)을 모든 사서에게 건네고, 사서는 자기가 찾은 책(entity)을 자기 칸(탭)에 늘어놓는다. 사용자는 Google 탭이나 My Music App 탭처럼 칸을 골라 본다.

이 구조에서 앱이 신경 쓸 일은 두 가지다. 무엇을 돌려줄지(entity)와 이미지를 받아 어떻게 찾을지(query)다. 화면을 그리는 일, 빈 결과를 보여 주는 일, provider 마다 탭을 나눠 한 sheet 에 담는 일은 system 이 한다.


App entity란?

세션은 App entity 를 앱 안의 명사라고 부른다. album, concert, 일정, 연락처처럼 앱이 다루는 것 하나하나를 type 으로 만들어 system 에 알려 주는 것이다.

이미 App Intents 로 Siri 나 Shortcuts 를 지원하는 앱이라면 같은 entity 를 그대로 쓸 수 있다. 이 앱에서는 먼저 시각적으로 닮은 album 을 돌려주고 싶어서 album entity 를 정의한다.


돌려줄 content 정의

AlbumEntity 에는 identifier, 이름, artist 이름, 앨범 그림의 thumbnail data 가 있다. 여기에 결과를 어떻게 보여 줄지 알려 주는 display representation 이 붙는다. 먼저 모든 App entity 에 필요한 default EntityQuery 와 typeDisplayRepresentation 을 넣고, 그 뒤에 entity 의 내용을 채운다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import AppIntents

struct AlbumEntity: AppEntity {
    var id: String
    @Property var name: String
    @Property var artistName: String
    var coverArtData: Data

    var displayRepresentation: DisplayRepresentation {
        DisplayRepresentation(
            title: "\(name)",
            subtitle: "\(artistName)",
            image: .init(data: coverArtData)
        )
    }

    static let defaultQuery = AlbumEntityQuery()

    static var typeDisplayRepresentation: TypeDisplayRepresentation { "Album" }
}

struct AlbumEntityQuery: EntityQuery {
    @Dependency var catalog: AlbumCatalog
    func entities(for identifiers: [String]) async throws -> [AlbumEntity] {
        catalog.albums(for: identifiers)
    }
}

AppEntity로 album 정의하기

AppEntity 는 앱의 data 한 건을 system 이 알아볼 수 있는 type 으로 만드는 protocol 이다. 요구하는 것은 id(entity 를 구별하는 identifier), displayRepresentation(이 entity 를 화면에 어떻게 보일지), defaultQuery(identifier 로 entity 를 다시 불러오는 query), typeDisplayRepresentation(이 type 자체의 이름) 네 가지다.

@Property 는 entity 의 stored property 를 system 에 공개한다. Shortcuts 에서 이름이나 artist 같은 값을 꺼내 쓸 수 있게 되는 property 가 이것이다. coverArtData 는 @Property 없이 앱 안에서만 쓰는 값이라 system 에 공개되지 않고 display representation 의 image 로만 쓰인다.

DisplayRepresentation 은 결과 한 칸에 무엇을 보여 줄지 정한다. 위 code 는 title 에 album 이름, subtitle 에 artist 이름, image 에 DisplayRepresentation.Image 로 감싼 그림 data 를 넣었다. static let defaultQuery 는 system 이 identifier 만 들고 있을 때 entity 를 다시 만들어 오는 EntityQuery 를 가리키고, TypeDisplayRepresentation 은 “Album” 이라는 type 이름을 문자열 literal 로 준다.

AlbumEntityQuery 의 entities(for:) 는 identifier 배열을 받아 맞는 entity 를 돌려준다. @Dependency 는 앱이 App Intents 쪽에 미리 등록해 둔 객체(여기서는 album catalog)를 꺼내 쓰게 하는 property wrapper 다. 등록은 앱 시작 때 AppDependencyManager 에 해 둔다.

Album entity 의 property 로 identifier, albumName, artistName 이 파랗게 있고 그 아래 title, subtitle, image 가 연하게 붙어 있다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

“App entities” slide 다. Album entity 상자 안에 property 로 identifier, albumName, artistName 이 진한 파랑으로 쌓여 있고, 맨 아래 title / subtitle / image 는 연한 초록으로 구분되어 있다. 앞의 셋은 entity 가 가진 data 이고 마지막 줄은 그 data 에서 만들어지는 display representation 이다. 이 그림의 albumName 은 code 의 name property 에 해당한다.


display representation 다듬기

Image Search 결과에서 사용자가 가장 먼저 보는 것이 이 display representation 이다. 자리가 좁다. title 과 subtitle 을 합쳐 약 세 줄의 글자와 thumbnail 하나가 전부라서, 가장 식별에 중요한 정보를 거기에 둬야 한다. music app 이라면 album 이름과 artist 다.

image 를 URL 로 만들 때는 full resolution asset 을 가리키지 말고 thumbnail 크기를 serve 하라는 것이 세션의 권고다. 이유는 결과 layout 에 있다. 결과가 여러 개면 두 column 으로 놓이므로 작은 이미지로도 충분히 좋아 보이고 빨리 뜬다. 결과가 하나뿐이면 반대로 그 이미지가 sheet 의 전체 폭을 차지한다. 항상 여러 개를 돌려줄 앱이면 작은 이미지로 가고, 하나만 돌려줄 수 있는 앱이면 넓게 펼쳐질 것까지 감안해야 한다.

왼쪽은 여러 개의 album 결과가 두 column 으로 놓이고 오른쪽은 결과 하나가 sheet 전체 폭을 차지한다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

phone 두 대가 나란히 있다. 왼쪽은 Before I Forget, The Art of Loving, Whatever’s Clever! 같은 album 이 두 column 격자로 놓여 있고 이미지가 작다. 오른쪽은 Before I Forget 하나뿐이라 그림이 sheet 의 좌우를 가득 채우고 그 아래 “More results from My Music App” 버튼이 있다.


query 구현

entity 를 정의했으니 Visual Intelligence 가 앱에서 어떻게 결과를 가져가는지가 다음 문제다. 그 입구가 intent value query 다.


IntentValueQuery란?

IntentValueQuery 는 entity 값을 system 에 제공하는 가벼운 query protocol 이다. Siri 를 지원하려고 App Intents 를 채택했다면 이미 하나 갖고 있을 수 있다. Visual Intelligence 에서 달라지는 점은 입력이다. system 이 촬영된 이미지에 관한 정보를 담은 SemanticContentDescriptor 를 넘겨 준다.

Visual Intelligence 가 SemanticContentDescriptor 를 앱의 IntentValueQuery 로 보내고 앱이 app entity 를 돌려주는 순환 그림 출처: WWDC26 - Best practices for integrating visual intelligence in your app

“Intent value query” slide 다. 위쪽 화살표는 Visual Intelligence 에서 Your App 안의 IntentValueQuery 로 SemanticContentDescriptor 를 보내고, 아래 화살표는 App entities(visual search results)가 Visual Intelligence 로 돌아간다. 요청은 descriptor 로 들어가고 응답은 entity 로 나간다는 것이 전부다.

처음 만드는 query 는 album 만 돌려준다. 아래 code 는 세션 그대로 반환 type 이 [VisualSearchResult] 다. VisualSearchResult 는 여러 종류의 결과를 담는 type 으로 뒤에서 정의하고, 여기서는 album 만 그 안에 담아 돌려준다. concertFinder dependency 도 뒤에서 concert 를 찾을 때 쓰이고 이 자리에서는 쓰이지 않는다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import AppIntents
import VisualIntelligence

struct SearchHandler: IntentValueQuery {
    @Dependency var catalog: AlbumCatalog
    @Dependency var concertFinder: ConcertFinder

    func values(for input: SemanticContentDescriptor) async throws -> [VisualSearchResult] {
        guard let pixelBuffer = input.pixelBuffer else {
            return []
        }

        let albums = try await catalog.search(matching: pixelBuffer)

        return albums.map { VisualSearchResult.album($0) }
    }
}

IntentValueQuery로 이미지 받아 결과 돌려주기

IntentValueQuery 는 values(for:) 를 요구한다. 입력 type 은 protocol 의 associated type 이라 여기서 SemanticContentDescriptor 로 정해지고, 돌려주는 값은 protocol 의 Result associated type 의 배열이다. 여기서는 Result 가 VisualSearchResult 다.

SemanticContentDescriptor 는 Visual Intelligence framework 의 type 이고 사용자가 고른 영역의 이미지를 pixelBuffer 로 갖고 있다. pixel buffer 는 이미지를 픽셀 값의 배열로 들고 있는 memory 덩어리다. 값이 optional 이라서 guard let 으로 풀고, 없으면 빈 배열을 돌려준다. 이미지를 받지 못한 경우를 오류로 던지지 않고 “결과 없음” 으로 처리한 것이다.

실제 검색은 catalog.search(matching:) 에 맡긴다.


feature print란?

feature print 는 이미지를 요약한 숫자 vector 다. 이미지 두 장을 픽셀 단위로 비교하면 크기나 밝기가 조금만 달라도 전혀 다른 그림이 되지만, feature print 는 그림이 무엇처럼 보이는지를 요약한 값이라서 두 feature print 사이의 distance 를 재면 얼마나 닮았는지가 나온다. distance 가 작을수록 닮았다. 사람으로 치면 몽타주다. 얼굴 사진을 통째로 대조하는 대신 특징을 적은 몽타주끼리 견주는 것이다.


Vision feature print로 닮은 album 찾기

이 앱은 저장해 둔 album 의 local catalog 를 on-device 로 검색한다. 이미지 처리에는 Vision framework 를 쓴다. Vision 은 computer vision 용으로 미리 학습된 machine learning model 들을 제공한다. catalog 의 항목마다 feature print 를 하나씩 갖고 있다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Vision

@Observable
class AlbumCatalog {
    static let shared = AlbumCatalog()

    struct CatalogEntry: Sendable {
        let album: AlbumEntity
        let featurePrint: FeaturePrintObservation
    }

    private(set) var entries: [CatalogEntry] = []

    private func generateFeaturePrint(
        for image: CGImage
    ) async throws -> FeaturePrintObservation {
        let request = GenerateImageFeaturePrintRequest()
        let result = try await request.perform(on: image)
        return result
    }
}

GenerateImageFeaturePrintRequest로 feature print 만들기

GenerateImageFeaturePrintRequest 는 Swift 로 새로 쓰인 Vision API 의 request 이고, perform(on:) 에 CGImage 를 주면 FeaturePrintObservation 을 돌려준다. 이 observation 이 곧 feature print 다. request 를 만들고 await 로 수행해 결과를 받는 구조라 async 함수 안에서 쓴다.

@Observable 는 property 의 변화를 SwiftUI 가 추적하게 하는 macro 다. CatalogEntry 는 album entity 와 그 feature print 를 한 쌍으로 묶는다. entries 는 밖에서 읽기만 하고 catalog 안에서만 바꾸도록 private(set) 이다.

세션이 짚는 점은 catalog 의 feature print 를 미리 계산해 두는 것이다. query 시점에 계산하면 사용자가 highlight 한 직후의 응답이 그만큼 느려지므로, album 을 catalog 에 넣을 때 위 generateFeaturePrint(for:) 로 만들어 CatalogEntry 에 저장해 둔다. query 때 새로 만드는 feature print 는 사용자가 찍은 이미지 하나뿐이다.

검색은 catalog 의 method 하나다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
func search(matching pixelBuffer: CVReadOnlyPixelBuffer, limit: Int = 10, maxDistance: Double = 1.0) async throws -> [AlbumEntity] {
    var cgImage: CGImage?
    _ = pixelBuffer.withUnsafeBuffer { VTCreateCGImageFromCVPixelBuffer($0, options: nil, imageOut: &cgImage) }
    guard let cgImage else { return [] }

    let queryPrint = try await generateFeaturePrint(for: cgImage)

    return try entries.compactMap { entry -> (album: AlbumEntity, distance: Double)? in
        let distance = try queryPrint.distance(to: entry.featurePrint)
        guard distance <= maxDistance else { return nil }
        return (entry.album, distance)
    }
    .sorted { $0.distance < $1.distance }
    .prefix(limit)
    .map { $0.album }
}

CVReadOnlyPixelBuffer를 feature print distance 로 비교하기

  1. 입력은 CVReadOnlyPixelBuffer 다. SemanticContentDescriptor.pixelBuffer 가 주는 읽기 전용 pixel buffer type 이다. withUnsafeBuffer 는 그 안의 CVPixelBuffer 를 closure 동안만 빌려 준다.
  2. VTCreateCGImageFromCVPixelBuffer 는 VideoToolbox 의 함수로 pixel buffer 를 CGImage 로 바꾼다. 결과는 imageOut 으로 나와서 var cgImage: CGImage? 에 & 로 넘긴다. 함수가 돌려주는 상태 값은 쓰지 않아 _ = 로 버렸고, 변환에 실패해 cgImage 가 nil 이면 빈 배열을 돌려준다.
  3. 위의 generateFeaturePrint(for:) 로 사용자 이미지의 feature print queryPrint 를 만든다.
  4. distance(to:) 로 catalog 의 feature print 마다 distance 를 잰다. maxDistance 이하만 남기고 넘으면 nil 을 돌려 compactMap 이 버리게 한다. 이것이 닮지 않은 album 을 거르는 similarity threshold 다. 기본값 1.0 은 세션 code 의 값이고, 얼마가 알맞은지는 catalog 에서 실제 distance 분포를 보며 정해야 한다.
  5. sorted 로 distance 가 작은 순, 곧 가장 닮은 것이 앞에 오게 정렬한다.
  6. prefix(limit) 로 최대 limit 개만 자르고 map 으로 album entity 만 꺼낸다.

distance(to:) 는 던질 수 있는 함수라 try 가 붙고, 그래서 compactMap 앞에도 try 가 있다.


검색 best practice

이 검색에서 세션이 강조하는 것은 두 가지다. feature print 를 미리 계산해 query 를 빠르게 하고, 결과를 similarity 순으로 정렬해 가장 좋은 match 가 먼저 나오게 한다. on-device 로 찾든 server 에 묻든 원칙은 같아서 결과는 빠르고 순서가 있어야 한다.

결과 수도 제한한다. 개수를 제한하면 나오는 결과가 더 관련 있게 유지된다. 좋은 match 가 하나도 없으면 빈 배열을 돌려주면 되고, 빈 응답을 보여 주는 것은 system 이 처리한다. 앱이 “결과 없음” 화면을 따로 만들 필요가 없다.

feature print 는 Vision 이 하는 일의 겉만 만진 것이다. 세션은 Vision 의 다른 기능으로 앱의 visual search 를 넓힐 수 있다고 소개한다. 이미지에서 text 를 뽑거나 barcode 를 읽거나 얼굴을 찾거나 이미지를 분류하는 기능이다. 예를 들어 명함 사진이라면 상호와 전화번호 같은 글자를 읽어 그 글자로 앱의 data 를 검색하는 식이다.

명함 사진에서 text 를 뽑아 아래에 줄 단위 글자로 보여 주는 예시와 best practice 세 줄 출처: WWDC26 - Best practices for integrating visual intelligence in your app

“Best practices / Search methods” slide 다. 왼쪽에 “Return results fast and ranked”, “Apply limits or similarity thresholds”, “Explore Vision framework APIs” 세 줄이 있다. 오른쪽에는 Clarus’s 라는 가게의 명함 사진에서 상호, 전화번호, email, 주소가 글자 상자로 잡히고, 그 아래에 같은 내용이 줄 단위 text 로 풀려 있다. 아래쪽에는 WWDC24 의 “Discover Swift enhancements in the Vision framework” 가 참고로 붙어 있다.


결과를 눌렀을 때 여는 화면

결과를 탭한 사용자를 앱의 맞는 화면에 내려놓는 것이 OpenIntent 다. system 은 사용자가 고른 entity 를 담아 이 intent 를 부르고, 앱은 perform 에서 그 album 의 상세 화면으로 이동한다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import AppIntents

struct OpenAlbumIntent: OpenIntent {
    static let title: LocalizedStringResource = "Open Album"

    @Parameter(title: "Album")
    var target: AlbumEntity

    @Dependency var appState: AppState

    func perform() async throws -> some IntentResult {
        await appState.openAlbum(id: target.id)
        return .result()
    }
}

OpenIntent로 선택한 album 화면 열기

OpenIntent 는 “이 entity 를 열어라” 라는 뜻의 intent protocol 이다. target 이라는 이름의 parameter 로 열 entity 를 받아야 하고, system 은 사용자가 탭한 결과를 이 target 에 채워 넣는다. @Parameter 는 intent 가 받는 입력을 선언하는 property wrapper 이고, title 은 Shortcuts 같은 곳에 보이는 이름이다. 코드의 static let title 은 LocalizedStringResource 로, 지역화할 수 있는 문자열 resource 이고 intent 이름으로 Shortcuts 등에 보인다.

perform() 은 intent 가 실제로 하는 일이고, IntentResult 를 돌려준다. 돌려줄 값이 없으면 .result() 로 끝낸다. 여기서는 앱의 navigation state 를 쥔 AppState 에 album id 를 넘겨 화면을 바꾸게 한다.

세션이 정리한 원칙은 이렇다. OpenIntent 는 사용자가 고른 content 로 곧장 데려가야 한다. 다른 기능을 위해 이미 entity 의 OpenIntent 를 만들어 두었다면 그대로 재사용해도 되고, Visual Intelligence 전용을 따로 만들 필요가 없다. 그리고 perform 은 가볍게 둔다. 이 method 는 앱이 foreground 로 올라오는 동안 실행되므로 navigation 만 하고, 무거운 loading 은 view 가 뜬 뒤로 미룬다.


데모로 본 흐름

여기까지가 기본 Image Search 통합의 전부다. 세션의 데모는 친구가 Messages 로 보내 준 album 추천에서 시작한다. 그 추천을 Visual Intelligence 로 앱에서 듣고 싶다는 상황이다.

Messages 에 온 album 그림 위에 highlight 가 얹혀 있고 아래에 Highlight to Search 문구와 Ask, Search 버튼이 있다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

screenshot 편집 화면이다. Johann 과의 대화에서 album 그림이 번지는 빛으로 감싸여 highlight 되어 있고, 아래에 “Highlight to Search” 안내와 Ask, Search 버튼이 있다. screenshot 을 찍고 album 그림을 highlight 한 뒤 사용 가능한 provider 중에서 앱을 고르는 순서다.

query 가 동작해서 album 이 top result 로 올라온다. 이 화면에서 앱은 이 기능을 채택한 다른 앱들과 나란히 나온다. 순서는 system 이 그 기기에 있는 Image Search provider 를 보고 정한다.

앱의 Piano Book 2 album 화면에 album 그림, artist, 장르와 연도, Play 버튼이 있다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

결과를 탭하면 앱의 album 화면으로 바로 들어간다. 왼쪽 위에 “Messages” 로 돌아가는 표시가 보이고, 화면에는 Piano Book 2, Lang Lang, Classical 2025, 파란 Play 버튼이 있다. entity 가 결과를 만들고, query 가 찾고, OpenIntent 가 연 것이다.


Mac과 iPad로 넓히기

올해 Visual Intelligence 는 iPadOS 와 macOS 에서도 쓸 수 있고, 같은 API 가 새 platform 에서도 그대로 있다. 앱을 고칠 곳은 최소다. IntentValueQuery, entity, OpenIntent 가 iOS, iPadOS, macOS 에서 모두 동작하며, 방금 쓴 code 가 곧 그 code 다.

platform 마다 다른 점은 입구다. iOS 에서는 camera 로 vinyl 이나 concert 포스터 같은 실물을 찍는 경우가 많고, macOS 와 iPad 에서는 screenshot 으로 digital media 를 잡는 것이 주된 입구다. 그래서 검색이 두 종류의 content 를 모두 잘 다뤄야 한다. 이 차이는 입력의 성질로 이어진다. 실물을 찍은 사진은 각도와 조명과 배경이 섞여 들어오고, screenshot 은 원본에 가까운 깨끗한 그림이 들어온다. feature print 의 threshold 를 정할 때 두 경우를 다 시험해 볼 이유가 된다.

Mac 에서는 입력 pixel buffer 가 iPhone 보다 훨씬 클 수 있다. 크기를 줄여야 할지는 앱의 용도에 따라 판단하라는 것이 세션의 안내다.

macOS 의 Image Search Results 창에 My Music App 탭의 Piano Book 2 결과와 More results 버튼이 있다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

세션은 같은 앱을 macOS 용으로 build 해서 같은 album 그림을 screenshot 으로 찍는다. query 와 entity code 는 바꾸지 않았다. 뒤쪽 Messages 창에 album 그림이 있고, 앞에 “Image Search Results” 창이 떠서 Google 과 My Music App 탭 중 앱 탭이 선택되어 있다. Piano Book 2 가 큰 이미지로 나오고 그 아래에 “More results from My Music App” 이 있다. 결과가 하나뿐이라 이미지가 창 폭을 채운다.


여러 종류의 결과 돌려주기

기본 통합이 끝났으니 앱에 더 얹을 것이 생각난다. 시각적으로 닮은 album 만이 아니라 그 album 의 artist 가 곧 여는 concert 도 찾을 수 있다면 어떨까. 여기서 쓰는 것이 UnionValue 다.


UnionValue란?

SemanticContentDescriptor 를 입력으로 받는 IntentValueQuery 는 앱에 하나만 둘 수 있다. 그런데 돌려줄 entity type 이 album 과 concert 둘이 되었다. query 를 두 개 만들 수 없으니 두 type 을 한 type 으로 묶어야 한다. @UnionValue 를 붙인 enum 이 그 일을 하고, case 마다 entity 하나를 담는다. 상자 하나에 album 칸과 concert 칸이 따로 있고, 내용물은 어느 칸에 들었는지로 구별된다고 보면 된다.

entity type 이 둘이 되었으니 OpenIntent 도 type 마다 하나씩 필요하다. 사용자가 탭한 것이 album 인지 concert 인지에 따라 열 화면이 다르기 때문이다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@UnionValue
enum VisualSearchResult {
    case album(AlbumEntity)
    case concert(ConcertEntity)
}

struct OpenConcertIntent: OpenIntent {
    static let title: LocalizedStringResource = "Open Concert"

    @Parameter(title: "Concert")
    var target: ConcertEntity

    @Dependency var appState: AppState

    func perform() async throws -> some IntentResult {
        await appState.openConcert(id: target.id)
        return .result()
    }
}

UnionValue로 결과 type 묶기

@UnionValue 는 associated value 가 하나씩 있는 enum 에 붙이는 macro 다. 각 case 에 들어가는 type 은 App Intents 가 값으로 받는 것이어야 하고, 여기서는 AlbumEntity 와 ConcertEntity 다. 앞에서 [VisualSearchResult] 로 선언해 두었던 반환 type 이 이 enum 이다. OpenConcertIntent 는 OpenAlbumIntent 와 모양이 같고 열 화면만 openConcert(id:) 로 다르다.

이제 query 가 이 union type 을 돌려주도록 확장한다. album 을 먼저 찾고, 그 album 들의 artist 로 가까운 곳의 concert 를 찾아 한 목록으로 합친다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
struct SearchHandler: IntentValueQuery {
    @Dependency var catalog: AlbumCatalog
    @Dependency var concertFinder: ConcertFinder

    func values(for input: SemanticContentDescriptor) async throws -> [VisualSearchResult] {
        guard let pixelBuffer = input.pixelBuffer else {
            return []
        }

        let albums = try await catalog.search(matching: pixelBuffer)

        let artists = albums.map { $0.artistName }

        let concerts = await concertFinder.findNearby(byArtists: artists)

        return albums.map { VisualSearchResult.album($0) }
            + concerts.map { VisualSearchResult.concert($0) }
    }
}

concertFinder.findNearby(byArtists:) 는 앱이 만든 service 다. 결과는 album case 들 뒤에 concert case 들을 이어 붙인 배열이다.

세션은 앱이 돌려줄 수 있는 content 를 픽셀이 닮은 것 너머로 넓혀 보라고 한다. 이 앱은 image similarity 로 album 을 찾고, 그 artist 이름으로 근처 concert 라는 전혀 다른 종류의 결과를 꺼냈다. 앱의 맥락에서 사용자에게 도움이 될 만한 content 가 무엇인지 생각해 보고, 여러 종류의 결과를 돌려주는 것이 앱에 맞는지 따져 보라고 한다.


앱 안에서 검색 이어가기

사용자가 결과 sheet 에서 찾는 것을 바로 못 만날 수도 있다. 그럴 때 앱 안에서 검색을 이어 갈 쉬운 길을 주는 것이 마지막 손질이다. semanticContentSearch schema 를 쓴다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@AppIntent(schema: .visualIntelligence.semanticContentSearch)
struct SemanticContentSearchIntent: AppIntent {
    static let title: LocalizedStringResource = "Search in app"
    static let openAppWhenRun: Bool = true

    var semanticContent: SemanticContentDescriptor
    @Dependency var catalog: AlbumCatalog
    @Dependency var concertFinder: ConcertFinder
    @Dependency var appState: AppState

    func perform() async throws -> some IntentResult {
        guard let pixelBuffer = semanticContent.pixelBuffer else { return .result() }
        let albums = try await catalog.search(matching: pixelBuffer)
        let artists = albums.map { $0.artistName }
        let concerts = await concertFinder.findNearby(byArtists: artists)
        await appState.openSearch(albums: albums, concerts: concerts)
        return .result()
    }
}

AppIntent schema로 앱 안 검색 연결하기

@AppIntent(schema:) 는 intent 가 system 이 정의한 schema 의 모양을 따르게 하는 macro 다. 여기서는 .visualIntelligence.semanticContentSearch 를 골랐다. 이 schema 를 따르는 intent 를 앱이 제공하면 결과 sheet 에 “More results” 버튼이 생기고, 탭하면 이 intent 가 불린다.

openAppWhenRun 을 true 로 두면 intent 가 실행될 때 앱이 foreground 로 열린다. 앱의 검색 화면을 보여 줘야 하니 필요한 설정이다.

semanticContent 는 system 이 자동으로 채워 주는 property 이고 query 에서 받은 것과 같은 SemanticContentDescriptor 다. perform 안에서는 같은 이미지로 album 과 concert 를 다시 찾고, appState.openSearch(albums:concerts:) 로 앱의 search 화면을 결과가 미리 채워진 상태로 연다. 같은 검색 code 를 한 번 더 쓰고 있어서 실제 앱이라면 query 와 이 intent 가 부르는 공용 함수로 빼 두는 편이 낫다.

세션의 권고는 semantic content search 로 사용자가 앱의 전체 검색 경험으로 이어 가게 하라는 것이다. 이때 입력 context 를 받아 검색 화면을 미리 채워 두고, 빈 화면에서 다시 시작하게 하지 않는다. 앱은 결과 sheet 보다 훨씬 많은 것을 보여 줄 수 있다. filter, category, 앱 content 의 전체 깊이를 활용하라고 한다.

macOS 에서 Messages 의 album 그림 영역을 선택하자 Ask Siri 입력과 Image Search 버튼이 나타난 화면 출처: WWDC26 - Best practices for integrating visual intelligence in your app

세션이 완성한 앱을 다시 시연하는 장면의 시작이다. macOS 의 Messages 창에서 album 그림 둘레에 선택 상자가 잡혀 있고, 옆에 “Ask Siri” 입력칸과 “Image Search” 버튼이 나와 있다. 여기서 Image Search 를 누르면 album 과 concert 가 함께 결과로 나오고, 아래 More results 를 누르는 순서로 이어진다.

앱의 Search Results 창에 Top Match, Similar Albums, Upcoming Concerts 가 장르 filter 와 함께 나온다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

More results 를 누른 뒤의 앱 화면이다. Search Results 창 맨 위에 Top Match 로 Piano Book 2 가 Play 버튼과 함께 있고, 그 아래에 All 과 Classical 로 거르는 Filter by Genre, Similar Albums 로 Chopin Orbit, Upcoming Concerts 로 Lang Lang 과 Hayato Sumino 의 concert 가 Tickets 버튼과 함께 있다. 결과 sheet 에는 없던 filter 와 구역 나눔이 앱 안에서는 가능하다는 것이 보인다.


system store로 데이터 받기

지금까지는 앱이 Visual Intelligence 에 결과를 제공했다. 이야기에는 반대쪽도 있다. 앱이 Visual Intelligence 에서 data 를 받는 방향이다.

앱과 Visual Intelligence 사이에 intent value query 는 앱으로, visual search results 는 Visual Intelligence 로 향하는 두 화살표 출처: WWDC26 - Best practices for integrating visual intelligence in your app

“Two sides of Visual Intelligence” slide 다. Your app 과 Visual Intelligence 상자 사이에 intent value query 가 앱 쪽으로 오고 visual search results 가 Visual Intelligence 쪽으로 가는 두 화살표가 있다. 지금까지 만든 것이 이 한 쌍이다.

Visual Intelligence 의 다른 action 들은 system store 에 data 를 쓴다. 앱이 이미 그 store 를 읽고 있다면 Visual Intelligence 는 새 입력원이 자동으로 된다. 앱이 새로 할 일이 없다는 점이 핵심이다. 사용자가 Visual Intelligence 로 calendar 에 event 를 넣든 직접 입력하든 store 안에서는 같은 data 다.

System stores 가 Contacts(CNContactStore), EventKit(EKEventStore), HealthKit(HKHealthStore) 셋으로 갈라진다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

“System store integrations” slide 다. 왼쪽 System stores 에서 화살표가 셋으로 갈라진다. Contacts 는 CNContactStore, EventKit 은 EKEventStore, HealthKit 은 HKHealthStore 가 붙어 있다. event 는 EventKit 으로, 연락처 정보는 Contacts 로, 의료기기 측정값은 HealthKit 으로 읽는다.


System store란?

system store 는 Contacts, Calendar, Health 처럼 여러 앱이 같이 읽고 쓰는 OS 공용 저장소다. 앱이 자기 sandbox 안에 data 를 따로 들고 있으면 그 앱만 읽을 수 있지만, system store 의 data 는 사용자가 허락한 앱이라면 누구나 같은 곳에서 읽는다. 비유하자면 앱 안의 database 는 각자 집 서랍이고, system store 는 동네 공용 우편함이다. Visual Intelligence 가 우편함에 편지를 넣으면 그 우편함을 열어 보는 앱은 모두 그 편지를 본다. 읽으려면 사용자가 앱에 접근 권한을 줘야 하는 점도 서랍과 다르다.


EventKit으로 다가오는 concert 읽기

music app 은 사용자가 관심 있는 곧 열릴 concert 를 알고 싶다. 그래야 공연 전에 들어 볼 곡을 제안할 수 있다. 그래서 EventKit 통합을 넣는다. calendar 읽기 권한을 요청하고, 곧 열릴 event 를 query 하고, 변화를 관찰한다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import EventKit

@Observable
class UpcomingConcertManager {
    private let eventStore = EKEventStore()
    var upcomingConcerts: [EKEvent] = []
    var authorizationStatus: EKAuthorizationStatus = .notDetermined

    func requestAccessAndFetch() async throws {
        let granted = try await eventStore.requestFullAccessToEvents()
        guard granted else {
            authorizationStatus = .denied
            return
        }
        authorizationStatus = .fullAccess
        await fetchUpcomingConcerts()

        for await _ in NotificationCenter.default
            .notifications(
                named: .EKEventStoreChanged
            ) {
            await fetchUpcomingConcerts()
        }
    }

    func fetchUpcomingConcerts() async {
        let predicate = eventStore.predicateForEvents(
            withStart: .now,
            end: .now.addingTimeInterval(90 * 24 * 60 * 60),
            calendars: nil
        )

        let events = eventStore.events(matching: predicate)

        upcomingConcerts = events.filter { event in
            AlbumCatalog.shared.entries.contains { entry in
                event.title?.localizedCaseInsensitiveContains(entry.album.artistName) == true
            }
        }
    }
}

세션 화면에서는 세 조각으로 나뉘어 나오는 code 를 한 class 로 합쳤다.

EKEventStore로 calendar 읽고 변화 관찰하기

  1. EKEventStore 는 EventKit 에서 calendar 와 event 에 접근하는 창구다. 앱은 하나를 만들어 두고 계속 쓴다.
  2. requestFullAccessToEvents() 는 calendar 의 읽기와 쓰기 권한을 요청하는 async 함수다. 사용자가 허용하면 true 를 돌려준다. 앱의 Info.plist 에 NSCalendarsFullAccessUsageDescription 을 써 두어야 한다. 허용 여부는 EKAuthorizationStatus 로 나타내고, 여기서는 거부면 .denied, 허용이면 .fullAccess 를 상태 property 에 담았다.
  3. predicateForEvents(withStart:end:calendars:) 는 기간으로 event 를 찾는 조건을 만든다. 지금부터 90일 뒤까지로 잡았고 calendars 에 nil 을 주면 모든 calendar 를 본다.
  4. events(matching:) 는 그 조건에 맞는 EKEvent 배열을 돌려준다. 그중 title 에 catalog 의 artist 이름이 들어간 것만 남겨 upcomingConcerts 에 담았다. 비교는 대소문자를 가리지 않는 localizedCaseInsensitiveContains 다.
  5. EKEventStoreChanged 는 calendar database 가 바뀌었을 때 오는 notification 이다. NotificationCenter.notifications(named:) 가 그것을 AsyncSequence 로 만들어 주어서 for await 로 하나씩 받고, 올 때마다 다시 fetch 한다. 덕분에 Visual Intelligence 가 만든 event 가 앱이 켜져 있는 동안에도 자동으로 반영된다.

for await loop 는 notification 이 영영 올 수 있으니 끝나지 않는다. 그래서 requestAccessAndFetch() 는 돌아오지 않는 함수이고, 호출하는 쪽에서 Task 로 띄워 두어야 한다.

사용자가 social media 의 concert 소식 post 를 capture 하면 Visual Intelligence 가 event 를 감지해 calendar 에 추가하게 해 준다. 앱을 열면 그 concert 가 이미 Upcoming 에 있고, 공연 전에 들어 보라는 제안이 붙어 있다.

Visual Intelligence 가 채운 New Event sheet 에 Hayato Sumino Concert 와 날짜, 장소 Apple Park, Work calendar 가 들어 있다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

Visual Intelligence 가 만든 New Event 화면이다. 제목 Hayato Sumino Concert, 날짜 Wed, Apr 1, 2026 9:41 AM - 10:41 AM, 장소 Apple Park 가 이미 채워져 있고 Calendar 는 Work 다. 오른쪽 위 체크 버튼으로 저장한다.

앱의 Upcoming 탭에 Hayato Sumino Concert 항목과 공연 전에 들어 보라는 제안 문구가 있다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

앱을 열면 하단 탭의 Upcoming 에 Hayato Sumino Concert, Apple Park, April 1, 2026 at 9:41 AM 이 있고, 그 아래에 “Listen to Hayato Sumino before the show” 가 파란 글씨로 붙어 있다. 앱이 event 를 만든 것이 아니라 calendar store 에서 읽어 온 것이다.


Contacts와 HealthKit

같은 패턴이 다른 system store 에도 적용된다. 명함 같은 것에서 Visual Intelligence 로 추가한 연락처는 CNContactStore 로 읽는다. 혈압계, 혈당계, 체중계의 display 에서 읽어 들인 수치는 HKHealthStore 로 query 할 수 있다.

명함을 capture 한 화면 아래에 Add to Contacts 버튼이 있고 왼쪽에 CNContactStore 로 접근할 수 있다는 설명이 있다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

“Contacts” slide 다. 왼쪽에 “Contacts added through Visual Intelligence can be accessed via CNContactStore” 가 적혀 있고 아래에 WWDC24 의 “Meet the Contact Access Button” 이 참고로 붙어 있다. 오른쪽 phone 은 명함을 capture 한 화면이고 아래쪽 Ask, Search 사이에 “Add to Contacts” 가 보인다.

Blood Pressure 입력 화면에 날짜와 Systolic 120, Diastolic 80 이 채워져 있고 왼쪽에 HKHealthStore 로 query 한다는 설명이 있다 출처: WWDC26 - Best practices for integrating visual intelligence in your app

“HealthKit” slide 다. 왼쪽에 “Medical device logging captured by Visual Intelligence can be queried using HKHealthStore” 가 있다. 오른쪽 phone 은 Blood Pressure 기록 화면이고 날짜 Apr 1, 2026 9:41 AM, Systolic 120, Diastolic 80 이 들어 있다.

health 나 fitness 앱이 HealthKit 을 읽고 있다면 Visual Intelligence 는 수동 입력 없이 기록을 쌓는 또 하나의 길이 된다. 앱이 읽는 store 만 있으면 새로 만들 입력 화면이 없다.


Swift 6 language mode에서 고친 것

세션 code 는 조각이라서 그대로는 compile 되지 않는다. 세션 code 를 모아 한 파일로 만들고, 세션에 나오지 않는 부분을 scaffolding 으로 채워서 compile 해 봤다. 추가한 것은 ConcertEntity 와 ConcertEntityQuery, ConcertFinder, AppState, 그리고 AlbumCatalog.albums(for:) 다. 모두 빈 껍데기에 가깝고 세션 code 의 동작에는 영향을 주지 않는다.

build 할 때 걸리는 곳이 둘 있다. 하나는 VisualIntelligence module 이 iOS simulator SDK 에는 없다는 점이다. simulator 로 build 하면 “no such module ‘VisualIntelligence’” 가 난다. 그래서 device SDK(-sdk iphoneos, -target arm64-apple-ios27.0)와 macOS SDK 로 compile 했다. 다른 하나는 search(matching:) 가 쓰는 VTCreateCGImageFromCVPixelBuffer 다. 앞의 catalog code 는 import Vision 만 보이지만 이 함수는 VideoToolbox 에 있어서 import VideoToolbox 가 없으면 cannot find 'VTCreateCGImageFromCVPixelBuffer' in scope error 가 난다. 합친 파일에는 import VideoToolbox 와 import CoreVideo 를 함께 넣었다.

이제 concurrency 쪽이다. 이 code 를 Swift 6 language mode 로 build 하면 Swift 5 mode 에서 지나가던 경고가 error 로 바뀐다. 앞서 본 UpcomingConcertManager 까지 소개되었으니 한꺼번에 고칠 수 있다.


Sendable과 main actor란?

앱은 여러 thread 에서 동시에 돌고, 그중에는 두 thread 가 같은 값을 동시에 바꾸면 깨지는 값이 있다. 은행 창구 한 곳에서 같은 장부를 두 직원이 동시에 고쳐 쓰는 상황과 같다. Sendable 은 “이 값은 thread 사이로 넘겨도 안전하다” 는 표시다. 값을 복사해서 넘기거나 안에 바뀌는 상태가 없으면 이 표시를 붙일 수 있고, compiler 가 그 약속을 검사한다.

main actor 는 장부를 만지는 창구를 하나로 줄이는 방법이다. 어느 thread 에서 오든 요청은 한 줄로 서서 하나씩 처리되어서 동시에 만질 일이 없다. 대신 줄 밖에서 창구에 말을 걸려면 차례를 기다려야 해서 await 가 필요하다. @MainActor 를 붙인 class 는 이렇게 줄 세워 지켜지므로 compiler 가 Sendable 로 인정한다.

App Intents 쪽에서는 AlbumEntityQuery, SearchHandler, SemanticContentSearchIntent 가 모두 Sendable 을 따르는 struct 다. system 이 이 type 들을 여러 thread 에서 마음대로 만들고 넘기기 때문이다. 그래서 @Dependency 로 들고 있는 값도 thread 사이로 넘겨도 안전해야 한다.


Sendable 진단과 고친 방법

Swift 5 mode 에서는 통과하지만 warning 이 세 개 나온다.

1
stored property '_catalog' of 'Sendable'-conforming struct 'AlbumEntityQuery' contains non-Sendable type 'AlbumCatalog'; this is an error in the Swift 6 language mode

같은 내용이 SearchHandler 와 SemanticContentSearchIntent 에도 나온다. @Dependency 로 들고 있는 AlbumCatalog 가 Sendable 이 아니라는 경고다.

Swift 6 mode 에서는 error 가 된다.

1
2
type 'AlbumCatalog' does not conform to the 'Sendable' protocol
static property 'shared' is not concurrency-safe because non-'Sendable' type 'AlbumCatalog' may have shared mutable state

고친 방법은 AlbumCatalog 를 @MainActor @Observable final class 로 바꾸는 것이다. main actor 에 isolated 된 class 는 자동으로 Sendable 이 되므로 위 진단이 사라진다. 그런데 AlbumCatalog 만 바꾸면 UpcomingConcertManager.fetchUpcomingConcerts() 가 AlbumCatalog.shared.entries 를 읽는 자리에서 error 두 개가 새로 난다. “main actor-isolated static property ‘shared’ can not be referenced from a nonisolated context” 와 “main actor-isolated property ‘entries’ can not be referenced from a nonisolated context” 다. 그래서 UpcomingConcertManager 도 같은 main actor 로 옮겼다. 대신 catalog 의 method 는 main actor 위에서 불리므로 AlbumEntityQuery.entities(for:) 안의 호출에 await 를 붙인다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
struct AlbumEntityQuery: EntityQuery {
    @Dependency var catalog: AlbumCatalog
    func entities(for identifiers: [String]) async throws -> [AlbumEntity] {
        await catalog.albums(for: identifiers)
    }
}

@MainActor
@Observable
final class AlbumCatalog {
    static let shared = AlbumCatalog()
    // ...
}

@MainActor
@Observable
final class UpcomingConcertManager {
    // ...
}

MainActor로 catalog를 isolate하기

@MainActor 는 type 의 모든 property 와 method 를 main actor 에서만 접근하게 isolate 한다. 같은 actor 밖에서 부르려면 await 가 필요하므로, 비동기 함수인 entities(for:) 안의 await catalog.albums(for:) 가 그 자리다. final 은 이 진단과는 상관없고 상속을 막으려고 같이 붙였다. 이렇게 고친 파일은 Swift 5 mode 와 Swift 6 mode 모두 warning 없이 통과했다.


정리

통합점쓰는 APIbest practice
돌려줄 contentAppEntity, DisplayRepresentationtitle 과 subtitle 은 약 세 줄이라 album 이름과 artist 처럼 식별 정보만, image 는 thumbnail 크기, 결과가 하나면 전체 폭
이미지로 검색IntentValueQuery, SemanticContentDescriptor, Visioncatalog 의 feature print 는 미리 계산, similarity 순 정렬, 결과 수와 threshold 제한, 좋은 match 가 없으면 빈 배열
결과 탭OpenIntent선택한 content 로 곧장, 기존 OpenIntent 재사용, perform 은 가볍게
여러 종류의 결과@UnionValuedescriptor 를 받는 query 는 앱에 하나, entity type 마다 OpenIntent
앱 안 검색semanticContentSearch schema입력 context 로 검색 화면을 미리 채워 More results 로 연결
platform같은 APIiOS 는 camera, Mac 과 iPad 는 screenshot, Mac 의 큰 pixel buffer 는 resize 고려
system storeEventKit, Contacts, HealthKit이미 읽고 있다면 추가 작업 없이 새 입력원

실제 프로젝트에 가져갈 점은 다음과 같다.

  • IntentValueQuery 는 SemanticContentDescriptor 를 받는 것이 앱에 하나뿐이다. 결과 type 이 둘 이상이 되면 query 를 늘리지 않고 @UnionValue 로 묶는다.
  • display representation 은 세 줄과 thumbnail 이라는 좁은 자리를 기준으로 짠다. 결과가 하나일 때 그림이 전체 폭으로 커지는 경우까지 확인한다.
  • 이미지 비교는 feature print 를 catalog 에 미리 만들어 두고 query 때는 사용자 이미지 하나만 계산한다.
  • threshold 와 limit 으로 결과를 줄이고 맞는 것이 없으면 빈 배열을 돌려준다. 빈 화면은 system 이 그린다.
  • OpenIntent 의 perform 에서는 navigation 만 하고 무거운 loading 은 화면이 뜬 뒤로 미룬다.
  • 입력은 iOS 의 실물 사진과 Mac, iPad 의 screenshot 이 다르다. 두 경우로 모두 시험하고, Mac 의 큰 pixel buffer 는 필요하면 줄인다.
  • VisualIntelligence module 은 iOS simulator SDK 에 없어서 device SDK 나 macOS SDK 로 compile 해야 한다. VTCreateCGImageFromCVPixelBuffer 를 쓰는 파일에는 import VideoToolbox 도 필요하다.
  • Swift 6 language mode 에서는 @Dependency 로 들고 있는 class 가 Sendable 이어야 한다. @MainActor 로 isolate 하고 호출 쪽에 await 를 붙이는 것으로 풀린다. catalog 를 읽는 UpcomingConcertManager 같은 type 도 함께 옮겨야 한다.
  • 이미 EventKit, Contacts, HealthKit 을 읽는 앱이라면 Visual Intelligence 의 새 action 이 입력원으로 자동으로 들어온다. EventKit 은 EKEventStoreChanged 를 관찰해 두면 앱이 켜져 있어도 반영된다.

참고자료

이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.