title: Swift error: "Type '()' cannot conform to 'View'; only struct/enum/class types can conform to protocols" when calling function to write text
body: <p>I'm trying to use a completion to write text, but I get the error &quot;Type '()' cannot conform to 'View'; only struct/enum/class types can conform to protocols&quot; when I try to run it. Any help would be great, thank you!</p>
  <pre><code>VStack {
                      Image(&quot;external_white&quot;)
                          .resizable()
                          .aspectRatio(contentMode: .fit)
                          .frame(width: 60, height: 60.0)
                      Text(&quot;External IP&quot;)
                      getExternalAddress(&quot;&quot;) { (test) -&gt; Any in
                          Text(test)
                      }
                  }
  </code></pre>
  <p>Called function:</p>
  <pre><code>func getExternalAddress(_ key: String, completion: @escaping (String) -&gt; Any) {
      var test = key
      Ipify.getPublicIPAddress { result in
          switch result {
          case .success(let ip):
              print(ip + &quot; ip&quot;) // &quot;210.11.178.112&quot;
              test = ip
              print(test + &quot; test&quot;)
              completion(test)
          case .failure(let error):
              print(error.errorDescription)
          }
      }
  </code></pre>