Ugh! Tried editing the original post, but it said it was too many days ago to edit, then I accidentally deleted it!
@Chris_Parker - I do have a line that looks like that, but when I delete the breakpoint, nothing changes. The only thing on that line is the right squiggly bracket. I will share a screenshot if you like.
@mikaelacaron - I am in " SwiftUI Buttons and Properties - Lesson 7 (2023 / Xcode 14 / SwiftUI)" on Youtube.
Here is the code:
import SwiftUI
struct ContentView:
View {
var body: some View {
ZStack {
Image("background-wood-grain")
VStack {
Spacer ()
Image("logo")
Spacer ()
HStack {
Spacer ()
Image("card2")
Spacer ()
Image("card3")
Spacer ()
}
Spacer ()
Button("Deal") {
print("Deal cards")
}.foregroundColor(.white)
Spacer ()
HStack {
Spacer ()
VStack {
Text("Player")
.font(.headline)
.padding(.bottom, 10.0)
Text("0")
.font(.largeTitle)
}
Spacer ()
VStack {
Text("CPU")
.font(.headline)
.padding(.bottom, 10.0)
Text("0")
.font(.largeTitle)
}
Spacer ()
} <--- HERE IS WHERE I AM GETTING THE MESSAGE
.foregroundColor(Color.white)
Spacer ()
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
}