Skip to main content

app-clips

App Clip implementation with separate lightweight target, associated domains, NSUserActivity URL handling, SKOverlay full-app promotion, and size/API constraints. Use when adding an App Clip experience to an iOS app.

소스 정보

저장소
moasq/nanowave
최근 소스 활동
2026년 3월 27일 05:39
감지된 SKILL.md 언어
영어
스타
32
포크
9

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
app-clips
description
App Clip implementation with separate lightweight target, associated domains, NSUserActivity URL handling, SKOverlay full-app promotion, and size/API constraints. Use when adding an App Clip experience to an iOS app.
tags
swiftui, ios, extensions
platforms
ios
# App Clips ## Overview App Clips are lightweight versions of an app for quick, focused tasks. Users launch them via NFC tags, QR codes, Maps, Safari banners, or Messages links — no App Store install required. ## Setup Requires a separate App Clip target configured as `kind: "app_clip"` in the plan extensions array. ### Automatic Configuration - **Info.plist**: `NSAppClip` dict with `NSAppClipRequestEphemeralUserNotification` and `NSAppClipRequestLocationConfirmation` is set automatically on the App Clip target in `project.yml`. - **Associated Domains**: `appclips:{bundleID}` and `parent-application-identifiers` are configured automatically in `project.yml` entitlements. - **Experience URL**: Configure in App Store Connect to define the invocation URL. ## URL Handling Receive the invocation URL via `NSUserActivity`: ```swift struct AppClipApp: App { var body: some Scene { WindowGroup { ContentView() .onContinueUserActivity(NSUserActivityTypeBrowsingWeb) { activity in guard let url = activity.webpageURL else { return } // Extract parameters from URL to show relevant content } } } } ``` ## Full App Promotion Use `SKOverlay` to prompt users to download the full app: ```swift import StoreKit @Environment(\.requestAppStoreOverlay) var requestOverlay Button("Get Full App") { requestOverlay(AppStoreOverlay.AppClipCompletion(appIdentifier: "YOUR_APP_ID")) } ``` ## Constraints - Binary size must be under **15 MB** - No access to HealthKit, CallKit, or SiriKit (use App Intents in the full app instead) - Limited background execution modes - Use `@AppStorage` for lightweight persistence — SwiftData is not available
GitHub에서 보기