title: How to give a name to a closure when implementing the method in iOS Swift (Syntax Question)
body: <p>I created these two methods below to log the user out.  When logout2(...) gets called, the user has the ability to make any changes in the anyFinalChanges before logout1() runs.</p>
  <pre><code>  private func logout1() {
      Cache.clearCache()
    }
    
    func logout2(anyFinalChanges: () -&gt; (), userLoggedOut: () -&gt; ()) {
      anyFinalChangesInThisClosure()
      logout()
      userLoggedOut()
    }
  </code></pre>
  <p>When I implement the logout method the second closure doesn't show the name</p>
  <pre><code>  .logOut2(anyFinalChanges: {
  
    }) { //No Name here.. why is that?
  
    }
  </code></pre>
  <p>How can I make it so the name of the closure will always appear?</p>