Skip to content

Instantly share code, notes, and snippets.

@3257
Created April 7, 2018 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3257/968611f06b16b243e2ed17bdf56c498d to your computer and use it in GitHub Desktop.
Save 3257/968611f06b16b243e2ed17bdf56c498d to your computer and use it in GitHub Desktop.
fileprivate func uploadSuccess(_ storagePath: String, _ storageImage: UIImage) {
// Update the unicorn image view with the selected image
unicornImageView.image = storageImage
// Updated global variable for the storage path for the selected image
storageImagePath = storagePath
// Enable submit button and change its color
submitButton.isEnabled = true
submitButton.backgroundColor = .green
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment