Starting from the simple iOS App template, I make my "ContentView.swift":
import SwiftUI
struct ContentView: View {
var body: some View {
Button(action: {
print("hello console!")
}, label: {
Text("Button")
})
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
I start up a preview in Debug Preview
, I activate the console so it shows up below, I see my button that says "Button". I click the button on the text that says "Button", but still see nothing. What am I missing??