Skip to content

Instantly share code, notes, and snippets.

@MazenKilani
Created June 7, 2021 03:23
Show Gist options
  • Save MazenKilani/1a291b4d77f47d64f9ac6a62628c7a56 to your computer and use it in GitHub Desktop.
Save MazenKilani/1a291b4d77f47d64f9ac6a62628c7a56 to your computer and use it in GitHub Desktop.
// 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