title: Safely unwrapping optional with guard let in init()
body: <p>I think I probably missed the point of how this works but I have a class that needs to use a global optional value in several of its methods and right now I unwrapped it inside every method but I thought I could just unwrap the value in init(). Am I doing it wrong or is this now how it's supposed to work? - Thank you.</p>
  
  <pre><code>let iCloudPath = FileManager.default.url(forUbiquityContainerIdentifier: nil)?.appendingPathComponent("Documents")
  
  
  class iCloudManager {
  
      init() {
          guard let iCloudPath = iCloudPath else { return }
      }
  
      function1(){
          // uses iCloudPath but returns 'Value of optional type 'URL?' must be unwrapped to a value of type 'URL''
      }
  
      function2(){
          // uses iCloudPath but returns 'Value of optional type 'URL?' must be unwrapped to a value of type 'URL''
      }
  
  }
  </code></pre>