Search code examples
iosswiftstorekitapple-appclips

Issue with App Store Overlay: “Get the full app” Banner


I am trying to present the “Get the full app” banner in the App Clip, the code was working fine, but after updating to Xcode 12.1 doesn't happen anything!. Did Apple change anything?

@objc func displayOverlay() {
    guard let scene = view.window?.windowScene else { return }
    let config = SKOverlay.AppConfiguration(appIdentifier: "TREXAC", position: .bottom)
    let overlay = SKOverlay(configuration: config)
    overlay.present(in: scene)
    print("heey banner")
}

enter image description here

any help would be appreciated.


Solution

  • You should be using AppClipConfiguration instead of AppConfiguration

    guard let scene = view.window?.windowScene else { return }
    let config = SKOverlay.AppClipConfiguration(position: .bottom)
    let overlay = SKOverlay(configuration: config)
    overlay.delegate = self
    overlay.present(in: scene)