A Swift package that brings Reactiv's rich commerce experiences to iOS App Clips.
- Plug-and-play App Clip storefront powered by Reactiv
- NEW in 2.3: Full App embedding — drop ClipKit into your existing iOS app; Reactiv URLs and pushes present the Clip experience inside your app
- Built-in analytics stream with typed events
- Single-store and multi-store initialization modes
.dependencies = [
.package(url: "https://github.com/reactivapp/ReactivClipKit-SPM.git", from: "2.0.0")
]Add the package in Xcode → File → Add Packages… and select the ReactivClipKit product for your App Clip target.
try ReactivClipInitialize(
appIdentifier: "your-reactiv-app-id",
reactivEventsToken: "your-events-token",
appStoreID: "123456789",
parentBundleIdentifier: "com.yourapp.bundle"
)let stores: [StoreDescriptor] = [
StoreDescriptor(uuid: "intl-uuid", storeURL: "https://domain.com", eventsToken: "token-intl"),
StoreDescriptor(uuid: "ca-uuid", storeURL: "https://domain.com/ca", eventsToken: "token-ca"),
StoreDescriptor(uuid: "au-uuid", storeURL: "https://domain.com/au", eventsToken: "token-au"),
StoreDescriptor(uuid: "gb-uuid", storeURL: "https://domain.com/gb", eventsToken: "token-gb")
]
try ReactivClipInitializeMultiStore(
stores: stores,
appStoreID: "123456789",
parentBundleIdentifier: "com.yourapp.bundle"
)The framework chooses the descriptor whose storeURL is the longest prefix of the invocation URL. If nothing matches, the first descriptor acts as a fallback.
ReactivClipView()For remote notifications functionality, your App Clip integration must:
- Call
application.registerForRemoteNotifications()yourself.ReactivClipKitdoes not call this API automatically. - Forward APNs device token in
application(_:didRegisterForRemoteNotificationsWithDeviceToken:)usingNotificationCenter.default.postDeviceTokenReceived(deviceToken:) - Forward notification taps using
NotificationCenter.default.postNotificationTapped(response:)
See the full AppDelegate example in Usage.
Starting with ClipKit 2.3, ClipKit can be embedded inside an existing iOS SwiftUI app. When a Reactiv-owned URL or push notification arrives, ClipKit presents the commerce experience as a full-screen cover over your host content. When the user dismisses, they return exactly where they were.
Pin the Full App integration via:
.package(url: "https://github.com/reactivapp/ReactivClipKit-SPM.git", from: "2.3.0")Five integration touchpoints:
- Initialize with
"REACTIV_FULL_APP_MODE": trueininitializationOptions - Wrap your root view in
ReactivClipHost { MyHostHomeScreen() } - Forward the APNs device token in
application(_:didRegisterForRemoteNotificationsWithDeviceToken:)viaNotificationCenter.default.postDeviceTokenReceived(deviceToken:) - Forward push taps in
userNotificationCenter(_:didReceive:withCompletionHandler:)viaNotificationCenter.default.handleReactivNotificationTap(response:ifNotReactiv:) - Forward
appclip.apple.comUniversal Links inapplication(_:continue:_:restorationHandler:)viaNotificationCenter.default.forwardInvocationURL(_:)— required when your app uses third-party SDKs (Branch, OneSignal, Firebase, Klaviyo) that swizzle Universal Link delivery
@main
struct MyHostApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
init() {
try? ReactivClipInitialize(
appIdentifier: "<uuid>",
reactivEventsToken: "<token>",
appStoreID: "<id>",
parentBundleIdentifier: "com.yourcompany.app",
initializationOptions: ["REACTIV_FULL_APP_MODE": true]
)
}
var body: some Scene {
WindowGroup {
ReactivClipHost { MyHostHomeScreen() }
}
}
}URL forwarding, presentation, dismissal, and cold-start buffering are all handled by ReactivClipHost internally — you don't write .onOpenURL or .onContinueUserActivity yourself.
See the full guide: Documentation/FullAppIntegration.md — prerequisites, AppDelegate hooks, troubleshooting.
Watch the end-to-end integration walk-through → ReactivClipKit Integration Tutorial
- iOS 16+
- Xcode 26+
Detailed guides live in the Documentation folder:
- Usage — standalone App Clip integration
- Full App Integration — embed ClipKit in an existing iOS SwiftUI app (2.3+)
- API reference
- FAQ
If the Reactiv Dashboard is configured to send users to a landing page such as pages/test, you can test that flow locally by running your App Clip with an invocation URL.
In Xcode: Edit Scheme… → Run → Arguments → enable _XCAppClipURL and set it to a full URL like https://<your-store-domain>/pages/test.
See: Usage → Testing a Landing Page Locally
Need help? → support@reactivapp.com
ReactivClipKit is proprietary software. Use is governed by the License Agreement. Contact Reactiv for licensing details.
Patent Pending. ReactivClipKit and its underlying technology are protected by one or more pending patent applications. All rights reserved.