问题描述
我正在尝试在App Clip中显示“获取完整的应用”横幅,该代码运行正常,但是更新到Xcode 12.1之后什么都没有发生!苹果有什么改变吗?
@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")
}
任何帮助将不胜感激。
解决方法
您应该使用 android:layout_height="wrap_content"
而不是AppClipConfiguration
AppConfiguration