From f43652ae366dc6c88cfb0191f551694e0bc75c8f Mon Sep 17 00:00:00 2001 From: Pedro Cuenca Date: Fri, 23 Dec 2022 09:53:30 +0100 Subject: [PATCH] Request permissions to save to photo library. --- Diffusion.xcodeproj/project.pbxproj | 4 ++++ Diffusion/Info.plist | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 Diffusion/Info.plist diff --git a/Diffusion.xcodeproj/project.pbxproj b/Diffusion.xcodeproj/project.pbxproj index 2319580..3517609 100644 --- a/Diffusion.xcodeproj/project.pbxproj +++ b/Diffusion.xcodeproj/project.pbxproj @@ -41,6 +41,7 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ + EB33A51E2954E1BC00B16357 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; EBB5BA5229425BEE003A2A5B /* PipelineLoader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PipelineLoader.swift; sourceTree = ""; }; EBB5BA5929426E06003A2A5B /* Downloader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Downloader.swift; sourceTree = ""; }; EBE4438729488DCA00CDA605 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; @@ -124,6 +125,7 @@ EBE755C7293E37DD00806B32 /* Diffusion */ = { isa = PBXGroup; children = ( + EB33A51E2954E1BC00B16357 /* Info.plist */, EBB5BA5129425B07003A2A5B /* Pipeline */, EBE7560A29411A5E00806B32 /* Views */, EBB5BA5929426E06003A2A5B /* Downloader.swift */, @@ -487,6 +489,7 @@ ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Diffusion/Info.plist; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; @@ -527,6 +530,7 @@ ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Diffusion/Info.plist; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; diff --git a/Diffusion/Info.plist b/Diffusion/Info.plist new file mode 100644 index 0000000..0b50ca2 --- /dev/null +++ b/Diffusion/Info.plist @@ -0,0 +1,8 @@ + + + + + NSPhotoLibraryAddUsageDescription + To be able to save generated images to your Photo Library, you’ll need to allow this. + +