title: Why does swiftUI give me errors for correct code?
body: <p>SwiftUI has been giving me errors and refusing to build when I know that the code is correct. For instance the following code was working all of 15 minutes ago. I tried to wrap the <code>List</code> in <code>JumpToBookView</code> in a <code>VStack</code> and add a <code>Button</code> underneath the list, and it started spitting out errors on my <code>Image</code> in <code>BookRow</code>. This code was compiling and showing in the preview before I added the <code>Button</code> and <code>VStack</code>, after I removed them, it still won't let me preview the view. I have tried cleaning the build folder, deleting derived data, and quitting the application, all at the same time, and still nothing. No preview, and the project won't compile. For background, the project is mainly UIKit, but I'm trying to incorporate SwiftUI into it, even though that shouldn't matter because this view is not called anywhere. I am currently running the latest version of Xcode, and have attached my code and a screenshot of the errors. For search, I will also paste the errors here. <code>Missing argument label 'imageName:' in call</code>, <code>Value of type 'Image' has no member 'resizable'</code>, and <code>Cannot infer contextual base in reference to member 'fit'</code></p>
  <p><a href="https://i.stack.imgur.com/xrZLz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xrZLz.png" alt="enter image description here" /></a></p>
  <pre><code>import SwiftUI
  
  struct JumpToBookView: View {
      var body: some View {
          List {
              BookRow(selected: true)
              BookRow(selected: true)
              BookRow(selected: true)
              BookRow(selected: true)
              BookRow(selected: true)
              BookRow(selected: true)
          }
      }
      
      func testJump()
      {
          print(&quot;test&quot;)
      }
  }
  
  struct BookRow: View {
      var selected: Bool
      var body: some View {
          ZStack {
              Rectangle()
                  .fill(Color(RaiseColor.red))
              HStack{
                  Text(&quot;1.2 What is an Ecosystem?&quot;)
                      .font(.title)
                      .fontWeight(.bold)
                      .foregroundColor(Color(.white))
                  Spacer()
                  Image(selected ? &quot;pauseButton&quot; : &quot;playButton&quot;)
                      .resizable()
                      .aspectRatio(1, contentMode: .fit)
                      .frame(maxWidth: 25)
                      .foregroundColor(Color(.white))
              }
              .padding(.all)
          }
      }
  }
  
  
  struct JumpToBookView_Previews: PreviewProvider {
      static var previews: some View {
          JumpToBookView()
      }
  }
  </code></pre>
  <p>EDIT: I just want to add that it was also working with <code>RaiseColor.red</code> before, so there shouldn't be any issues with that custom color.</p>