Post

Replies

Boosts

Views

Activity

How do I get the "real" frame of a prominent displayed scene in iPadOS 15?
iOS 15 adds a new way to display scenes which Apple seems to call "prominent" (docs). From what I can tell, your scene's window has a frame equal to the devices' main screen but then OS then scales it down for display. This is a problem because it seems that the keyboard's frame is not adjusted for this when listening to keyboard notifications via NotificationCenter which is making it impossible to implement keyboard avoidance for while the scene is displayed prominently. Has anyone else run into this or know of an API to get the actual dimensions of your scene so that it's possible to calculate?
1
0
835
Aug ’21
How do I get the "real" frame of a prominent displayed scene in iPadOS 15?
iOS 15 adds a new way to display scenes which Apple seems to call "prominent" (docs). From what I can tell, your scene's window has a frame equal to the devices' main screen but then OS then scales it down for display. This is a problem because it seems that the keyboard's frame is not adjusted for this when listening to keyboard notifications via NotificationCenter which is making it impossible to implement keyboard avoidance for while the scene is displayed prominently. Has anyone else run into this or know of an API to get the actual dimensions of your scene so that it's possible to calculate?
Replies
1
Boosts
0
Views
835
Activity
Aug ’21