func save(){ let meme = Meme(topText: topTextField.text!, bottomText: bottomTextField.text!, originalImage: imageView.image!, memedImage: memedImage) } func generateMemedImage() -> UIImage { UIGraphicsBeginImageContext(self.view.frame.size) view.drawHierarchy(in: self.view.frame, afterScreenUpdates: true) let memedImage:UIImage = UIGrphicsGetImageFromCurrentImageContext()! UIGraphicsEndImageContext() return memedImage }