let autocompleteController = GMSAutocompleteViewController()
autocompleteController.autocompleteFilter?.country = "AU"
autocompleteController.delegate = self
self.presentViewController(autocompleteController, animated: true, completion: nil)
Run Code Online (Sandbox Code Playgroud)
我只需要过滤澳大利亚的数据,所以我想按国家过滤数据.
我已使用 showManageSubscriptions 函数在应用程序内显示带有订阅选项的订阅表,但表中有一个关闭按钮,未检测到该操作,但按钮是可单击的。
@available(iOS 15.0.0, *)
func showManageSubscription(_ windowScene: UIWindowScene) async {
do {
try await StoreKit.AppStore.showManageSubscriptions(in: windowScene)
print("Sheet is closed")
} catch {
print("Sheet can not be opened")
}
}
Run Code Online (Sandbox Code Playgroud)
请帮助我获得关闭按钮操作。