Skip to content

Instantly share code, notes, and snippets.

@Ingelheim
Created April 23, 2018 11:31
Show Gist options
  • Save Ingelheim/9e35b6387e14efe605b2eeb6f7596fec to your computer and use it in GitHub Desktop.
Save Ingelheim/9e35b6387e14efe605b2eeb6f7596fec to your computer and use it in GitHub Desktop.

Revisions

  1. Ingelheim created this gist Apr 23, 2018.
    8 changes: 8 additions & 0 deletions PrepareForSegue.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
    if segue.identifier == "showImageInformation"{
    if let imageInformationVC = segue.destination as? ImageInformationViewController,
    let actualSelectedImage = selectedImage {
    imageInformationVC.imageInformation = actualSelectedImage
    }
    }
    }