Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
- guard let selectedImage = info[UIImagePickerControllerOriginalImage] as? UIImage else {
- fatalError("Expected a dictionary containing an image, but was provided the following: \(info)")
- }
- avatarImageview.image = selectedImage
- dismiss(animated: true, completion: nil)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement