title: Download path in Xamarin iOS
body: <p>I am using Xamarin.Forms and written the code to download the file for the iOS 
  platform. It is downloading the file successfully without any error. But after downloading it, I am not able to find the downloaded file in my apple device.</p>
  
  <p>During debugging I found that it is showing </p>
  
  <pre><code>/var/mobile/Containers/Data/Application/1234567A-B8CD-9EF9-C850-9G73587DC7C/Documents/XF_Downloads/hausmann_abcd.jpg
  </code></pre>
  
  <p>path. So at which location file get saved? below is the image for the same. </p>
  
  <p><a href="https://i.stack.imgur.com/APNF6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/APNF6.png" alt="enter image description here"></a></p>
  
  <p>I have written below code for this</p>
  
  <pre><code>public class IosDownloader : IDownloader
  {
      public event EventHandler&lt;DownloadEventArgs&gt; OnFileDownloaded;
  
      public void DownloadFile(string url, string folder)
      {
          string pathToNewFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), folder);
          Directory.CreateDirectory(pathToNewFolder);
  
          try
          {
              WebClient webClient = new WebClient();
              webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);
              string pathToNewFile = Path.Combine(pathToNewFolder, Path.GetFileName(url));
              webClient.DownloadFileAsync(new Uri(url), pathToNewFile);
          }
          catch (Exception ex)
          {
              if (OnFileDownloaded != null)
                  OnFileDownloaded.Invoke(this, new DownloadEventArgs(false));
          }
      }
  
      private void Completed(object sender, AsyncCompletedEventArgs e)
      {
          if (e.Error != null)
          {
              if (OnFileDownloaded != null)
                  OnFileDownloaded.Invoke(this, new DownloadEventArgs(false));
          }
          else
          {
              if (OnFileDownloaded != null)
                  OnFileDownloaded.Invoke(this, new DownloadEventArgs(true));
          }
      }
  }
  </code></pre>