![]() The top of the keyboard layout guide then matches the bottom of the safe area layout guide. On an iPhone 13 pro that makes the guide 34 points high. When the keyboard is not visible the guide should be at the bottom of the screen with a height matching the safe area insets. You should then see the Keyboard Layout Guide in the document outline: In the size inspector, enable the Keyboard Layout Guide for the view (at the bottom, below the safe area guide): Select the view in the document outline to the left of the Interface Builder canvas: To show the keyboard layout guide for a view in Interface Builder: ![]() Interface Builder hides the keyboard layout guide by default. Constrain views to the layout guide so they adjust during layout when the keyboard shows on screen. You can now enable the keyboard layout guide on a scene’s UIView through the size inspector. It was also not available in Interface Builder.Īpple fixed the bugs in iOS 15.4 and now in Xcode 14 it’s also available in Interface Builder: Unfortunately, it was badly broken when first introduced. By creating constraints with the keyboard guide you build layouts that adapt to the keyboard without listening for keyboard notifications. Xcode 14 adds support for keyboard layout guides to Interface Builder.Īpple introduced the keyboard layout guide in iOS 15.
0 Comments
Leave a Reply. |