Xcode Error is Not Making Sense

When I run this basic code, I get an error in Xcode. My error is as follows. . .

Failed to produce diagnostic for expression; please file a bug report


I don't understand what this means, and I don't know what to do. I also don't know how to contact Apple about the bug Xcode is saying. Can you help me solve this problem?

The error message shown above is displayed on the bracket on line 20.

Code Block swift
struct Gamefile: View {
    
    @State var randomNumber = Int.random(in: 1...100)
    
    @State var sliderNumber = 1.0
    
    var min = 1
    var max = 100
    
    var body: some View {
        
        
        VStack{
            
            Slider(value: $sliderNumber, in: min...max)
            
            Button(action: /*@START_MENU_TOKEN@*/{}/*@END_MENU_TOKEN@*/, label: {
                Text("Tap For Results!")
                    .padding()
                    .fontWeight(.heavy)
                    .font(.title3)
                    .background(Color.yellow)
                    .cornerRadius(30.0)
                    .shadowRadius(5.0)
                
                
            })
            
        }
    }
}


yes errors messages are often not very clear. To solve your problem try fix your code such as:
 Note using macos 11 or ios 14, SwiftUI 2.0

 
Code Block
struct Gamefile: View {
   @State var randomNumber = Int.random(in: 1...100)
   @State var sliderNumber = 1.0 // <-- is Double
   
var min = 1.0  // <-- must be Double
   var max = 100.0 // <-- must be Double
   
   var body: some View {
     VStack {
      Slider(value: $sliderNumber, in: min...max)
      Button(action: {}, label: {
        Text("Tap For Results!")
          .padding()
         //  .fontWeight(.heavy) // <-- no fontWeight
          .font(.title3)
          .background(Color.yellow)
          .cornerRadius(30.0)
          .shadow(radius: 5)  // <-- use this
         //  .shadowRadius(5.0) // <-- no shadowRadius
       })
     }
   }
}

Xcode Error is Not Making Sense
 
 
Q