From 6355699480b523c10c15efb310c660d187201e41 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Tue, 2 May 2017 16:55:16 -0700 Subject: [PATCH] Fixes issue where image picker would be presented with a clear background. Occurs when Delta needs to request permission from user to access photo library. --- Delta/Importing/Import Options/PhotoLibraryImportOption.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Delta/Importing/Import Options/PhotoLibraryImportOption.swift b/Delta/Importing/Import Options/PhotoLibraryImportOption.swift index e202447..91d5399 100644 --- a/Delta/Importing/Import Options/PhotoLibraryImportOption.swift +++ b/Delta/Importing/Import Options/PhotoLibraryImportOption.swift @@ -32,6 +32,7 @@ class PhotoLibraryImportOption: NSObject, ImportOption imagePickerController.delegate = self imagePickerController.sourceType = .photoLibrary imagePickerController.mediaTypes = [kUTTypeImage as String] + imagePickerController.view.backgroundColor = .white self.presentingViewController.present(imagePickerController, animated: true, completion: nil) } }