title: firebase snapshot key for children autoids
body: <p>I have the following structure :</p>
  
  <pre><code>DATA :
        -kojasd-      &lt;----- child by autoid key name for folder
           property:value
        -kjofs-       &lt;----- child by aytoid key name for folder
           property:value
  </code></pre>
  
  <p>how can I get the key value of the childbyautoid() in a snapshot.children loop ?</p>
  
  <p>here s a bit of code to explain :</p>
  
  <pre><code>for items in snap.children {
                      let key = items.key as! String  // DOESN T WORK 
  
                      let value = items.value!!["property"] as! String
  
  
                  }
  </code></pre>
  
  <p>in this code, snap refers to DATA</p>
  
  <p>I thought that it would be easy to get this key value, but I m stucked here since a long time, any help ?? :)</p>
  
  <p>sincerely
  Yann</p>