2

我在通过 Google SignIn 登录时遇到问题。实际上没有在 iPhone 的 iOS 13.2.2 上显示键盘。请检查下面的图片。在此处输入图像描述在此处输入图像描述

4

1 回答 1

0

尝试在 SceneDelegate 中将 presentingViewController 设置为 window.rootViewController:

 let window = UIWindow(windowScene: windowScene)
 window.rootViewController = UIHostingController(rootView: contentView)     
 GIDSignIn.sharedInstance().presentingViewController = window.rootViewController       
 self.window = window
 window.makeKeyAndVisible()
于 2021-01-26T20:47:56.067 回答