Recommending your app to App Clip users
Display an overlay in your App Clip to recommend your app to users.
Overview
App Clips only remain on a device for a limited amount of time. If someone uses an App Clip regularly, they might want to get the corresponding app to use additional features and have the app on their home screen. With SKOverlay, you can recommend your full app to users and enable them to install it from within your App Clip.
If you’re using SwiftUI, make use of the appStoreOverlay(isPresented:configuration:) modifier. For example usage, see Fruta: Building a feature-rich app with SwiftUI.
To display an overlay when using UIKit:
Create an SKOverlay.AppClipConfiguration object.
Initialize SKOverlay with the configuration object.
Present the overlay.
The following code displays the overlay at the bottom of the visible scene:
func displayOverlay() {
guard let scene = view.window?.windowScene else { return }
let config = SKOverlay.AppClipConfiguration(position: .bottom)
let overlay = SKOverlay(configuration: config)
overlay.present(in: scene)
}To respond to the overlay’s appearance, dismissal, or failure to load, set the delegate, and implement the methods defined in SKOverlayDelegate.