For me this problem were coming by window
initialisation from the SceneDelegate
in XCode 12, swift 5, minimum deployment target 14, Storyboard
I have used the code just same as below
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let _ = (scene as? UIWindowScene) else { return }
let windowScene = UIWindowScene(session: session, connectionOptions: connectionOptions)
self.window = UIWindow(windowScene: windowScene)
setRootVC()
}
After this code written I was getting this issue, paste
is working but Keyboard
not showing anyhow also not worked Mac Keyboard
to fix this I have removed these lines
let windowScene = UIWindowScene(session: session, connectionOptions: connectionOptions)
self.window = UIWindow(windowScene: windowScene)
And the problem was fixed for me, now SceneDelegate looks like
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let _ = (scene as? UIWindowScene) else { return }
setRootVC()
}