The Xcode Debugger | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/18176818-your-first-ios-and-swiftui-app-polishing-the-app/lessons/16

Just an FYI, the changes did not work correctly when I typed Cmd-R until I did Product → Clean Build Directory followed by Cmd-R

I’m not sure how this instruction works with the new XCode 13.2.1. my .alert code is:

.alert("Hello there!", isPresented: $alertIsVisible) {
          Button("Awesome!") {
              
          }
            
        } message: {
            let roundedValue = Int(sliderValue.rounded())
            Text("The Slider's value is \(roundedValue).\n"+"You earned \(game.points(sliderValue: roundedValue)) points.")
        }

How does it work with this set up?

I found how it’s supposed to look on the course’s Github: https://github.com/raywenderlich/video-yfsa2-materials/blob/versions/2.0/16-the-xcode-debugger/Final/Bullseye/Bullseye/Views/ContentView.swift