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
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 | |
} | |
} | |
} |
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
import UIKit | |
class ImageInformationViewController : UIViewController { | |
@IBOutlet weak var nameLabel: UILabel! | |
@IBOutlet weak var imageView: UIImageView! | |
@IBOutlet weak var descriptionText: UITextView! | |
var imageInformation : ImageInformation? | |
override func viewDidLoad() { |
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
import UIKit | |
import SpriteKit | |
import ARKit | |
struct ImageInformation { | |
let name: String | |
let description: String | |
let image: UIImage | |
} |
OlderNewer