title: Get data from Firebase child to a label in Xcode 8 swift 3 ios 10+
body: <p>I want to display Firebase data to a label in UICollection view.
  <a href="https://i.stack.imgur.com/PXKIT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PXKIT.png" alt="enter image description here"></a></p>
  
  <p>I have seen a lot of tutorials and found similar question on stackoverflow but I am little bit confused about this peace of code. help me to found &amp; correctify the error please</p>
  
  <pre><code>     var ref = FIRDatabase.database().reference()
  
      ref.observeSingleEvent(of: .value, with: { snapshot in
          let m = snapshot.value.objectForKey("AddedInfo/Product")as?
          self.EmailLabel.text = m
      })
  </code></pre>