Created
June 7, 2021 03:23
-
-
Save MazenKilani/1a291b4d77f47d64f9ac6a62628c7a56 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
// NoteViewController.swift | |
// The Media Menu Video Button Action | |
//.. | |
override func prepare(for segue: UIStoryboardSegue, sender: Any!) { | |
noteTitle = titleTextField.text! | |
// noteID = Current Note Unique ID | |
//... | |
if segue.identifier == "noteToVideos" { | |
let vc = segue.destination as! VideosViewController | |
vc.videosNoteID = noteID // the new vc var = this vc var | |
vc.videosNoteTitle = noteTitle // the new vc var = this vc var | |
vc.videosSourceType = "Video" // the new vc var = this vc var | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment