0

You can click on these buttons in Interface Builder:

"View as:" options in Interface Builder

to change the size of the view controller you are working on, and the autolayout solver solves it there and then.

So obviously you can check the layout on various size screens.

Surely, there's a function somewhere that makes the "keyboard appear".

How can I show the keyboard, or allow for the keyboard area, on a Storyboard?

Fattie
  • 27,874
  • 70
  • 431
  • 719

1 Answers1

2

There is no such function in Xcode 9.

However, you can provide a custom freeform size for your view controllers to simulate a keyboard appearance.

  1. Select a view controller and click on the Size Inspector on the right sidebar (the fifth icon from the left).

  2. Select Freeform for Size in the View Controller section.

  3. Enter a size of your choice. You can calculate with a general keyboard height of 216.

Simulated Size option for view controller

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223