title: Insert an image from ftp server in swiftui
body: <p>I want to insert an image in my app coded with swiftui by using an ftp server but I don't see how to handle that.</p>
  <p>At this moment I add an image like that :</p>
  <pre><code>AsyncImage(url: URL(string: &quot;file:///Users/user/Library/Mobile%20Documents/com~apple~CloudDocs/Soft/apdemo/demo/src/Export/&quot;+graph1+imageId+&quot;.png&quot;)) { image in
                      image.resizable()
                  } placeholder: {
                      ProgressView()
                  }
                  .frame(width: 1050, height: 75)
                  .background(Rectangle().fill(Color.white))
                  .border(Color.black, width: 1)
  </code></pre>
  <p>And I would like something like that :</p>
  <pre><code>AsyncImage(url: URL(string: &quot;ftp://user:password@host:port/path&quot;)) { image in
                      ...
  </code></pre>
  <p>I have already seen these post but I don't really understand how does it work. Does someone has any real examples ?</p>
  <p><a href="https://stackoverflow.com/questions/14107619/how-to-download-display-an-image-from-ftp-server">How to download &amp; display an image from ftp server</a></p>
  <p><a href="https://stackoverflow.com/questions/8612724/file-downloading-from-ftp-server-in-ios-application">file downloading from ftp server in iOS application</a></p>
  <p><a href="https://stackoverflow.com/questions/51625557/how-to-download-ftp-file-in-swift-3">How to download FTP file in swift 3</a></p>