title: "Function declares an opaque return type [...]" error when declaring a view as a variable inside the body of a View in SwiftUI
body: <p>Assume I have a <code>View</code> with an <code>Image</code> that has a <code>shadow</code> property:</p>
  
  <pre><code>struct ContentView: View {
      var body: some View {
          Image("turtlerock").shadow(radius: 10)
      }
  }
  </code></pre>
  
  <p>Now imagine I want to access the value of the shadow radius. I assumed I could do this:</p>
  
  <pre><code>struct ContentView: View {
      var body: some View {
          let myImage = Image("turtlerock").shadow(radius: 10)
          print(myImage.modifier.radius)
      }
  }
  </code></pre>
  
  <p>However, this returns an error:</p>
  
  <blockquote>
    <p>Function declares an opaque return type, but has no return statements in its body from which to infer an underlying type</p>
  </blockquote>
  
  <p>Is there a way to accomplish this somehow?</p>