Keyboard Input in Playground

Hi

I've been prototying a view in swift playground to get the layout correct.

One of view elements is a UITextField.

Is it possible to interact (provide keyboard input) to the UITextField in the playground?

At this time I know of no way to interact with the iOS UI in the displayed view. Xcode 6.x/Swift 1.2 had workarounds but the current release does not seem to on the iOS side of the house.

In the playground

import PlaygroundSupport

let viewController = UIViewController()

PlaygroundPage.current.needsIndefiniteExecution = true
PlaygroundPage.current.liveView = viewController

From there you implement a keyboard and interact with the UI. The key is setting `needsIndefiniteExecution` to true.

Keyboard Input in Playground
 
 
Q