![]() ![]() The layout frame of the keyboard guide matches the area of its owning view covered by the keyboard. It’s a property of UIView and like all layout guides it has anchors for the edges, height, width, and center. In iOS 15, Apple added a keyboard layout guide ( UIKeyboardLayoutGuide). ![]() See Split views and unexpected keyboard for an example. That might mean moving views out of the way of the keyboard or adjusting the content inset of a scroll view. The notification includes the frame for the keyboard that you can use to adjust your layout. The traditional way of managing the keyboard is to register for notifications for when the system shows and hides the keyboard. That’s especially tricky when you want to attach things like toolbars to the floating iPad keyboard. It can make it easier to build layouts that adapt to the keyboard. ![]() Apple introduced the keyboard layout guide in iOS 15. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |