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.
Version 3.4 seems to be very problematic with respect to SwiftUI. Hopefully there’s a fast follow update coming.
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.