Want to retrieve data from firebase and want to store it in textview object of swift : Heres is my code :-
import UIKit
import Firebase
import FirebaseDatabase

class PoliticsNewsViewController: UIViewController{

    @IBOutlet weak var Image: UIImageView!
    @IBOutlet weak var textView: UITextView!
    var ref:FIRDatabaseReference!
    override func viewDidLoad()
    {
        super.viewDidLoad()
        
        //Retrieval and insertion must done here currently
         create()
        
     }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func create()
    {
        //let date="9 feb 2017"
        let text="Sidhu joins congress"
        let aapNews="Arvind kejriwal now in race of wining wining punjab elections as he is gaining 70% seats in punjab"
        let BJPNews="BJP sufeers major blow in punjab due to demonatization gaining only 40 seats"
        ref=FIRDatabase.database().reference()
        ref.child("Politics News Table").childByAutoId().setValue(["Text" : text,"AAP news" : aapNews,"BJP News" : BJPNews])
        
    }

