-
-
Save zontan/d6b9076f9a021d7354ecc39ed3712aad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var liveRef: DatabaseReference! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view. | |
liveRef = Database.database().reference(withPath: "live") | |
} | |
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { | |
if segue.identifier == "GoLive" { | |
liveRef.child(userName).setValue("true") | |
if let banubaView = segue.destination as? ViewController { | |
banubaView.roomName = sender as? String | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment