I am new to Xcode 12.4/Playgrounds, and am trying to get this code to run. So far, it doesn't generate the View object, and does not generate an error code either. Any ideas about what I'm doing wrong?
import SwiftUI
import PlaygroundSupport
struct ExampleView: View{
var body: some View {
VStack {
Rectangle()
.fill(Color.blue)
.frame(width:200, height:200)
Button(action: {
})
Text("Rotate")
}
};.padding(10)
}
PlaygroundPage.current.setLiveView(Example-View())
.padding(100)