title: Getting a nil value from Firebase using Swift
body: <p>I've tried this for five days now, but no luck. </p>
  
  <p>Here is my Firebase snapshot:</p>
  
  <pre><code>Snap (Channels) {
      HiruFM =     {
          image = "hiru_fm_logo.png";
          title = "Hiru FM";
      };
      SirasaFM =     {
          image = "sirasa_fm_logo.png";
          title = SirasaFM;
      };
  }
  </code></pre>
  
  <p>Below is what I tried:</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
      ref = Database.database().reference().child("Channels")
  
      ref.observeSingleEvent(of: .value) { (snap) in
          print(snap) // checking if the snap grabs the data (confirmed)
          guard var data = snap.value as? Dictionary&lt;String, Any&gt; else {return}
  
  
          let channeTitle = data["title"] as? String ?? "No title"
          print(channeTitle) // prints "No title" (this is the problem)
  
          let channelImage = data["image"] as? String ?? "No image"
          print(channelImage) // prints "No image"
          let myData = Channels(title: channeTitle, image: channelImage)
          self.channels.append(myData)
      }
  }
  </code></pre>