Newest version of iPad Swift Playgrounds (version 3.4) is broken for SwiftUI Interactivity

The following simple state modification code worked fine in the previous version on iPad. In version 3.4 the view will not update with the changed text as a result of the button press. Works fine in latest Xcode Playgrounds & Swift Playgrounds on the Mac though.

Code Block swift
import SwiftUI
import PlaygroundSupport
struct Content: View {
    @State private var greeting: String = "Hello"
    var body: some View {
        VStack {
            Text("\(greeting)").padding()
            Button(action: {greeting = "World"}) {
                Text("Press Me")
            }
        }
    }
}
PlaygroundPage.current.setLiveView(Content())


Version 3.4 seems to be very problematic with respect to SwiftUI. Hopefully there’s a fast follow update coming.


Newest version of iPad Swift Playgrounds (version 3.4) is broken for SwiftUI Interactivity
 
 
Q