Skip to content

Commit f43652a

Browse files
committed
Request permissions to save to photo library.
1 parent 2bb9b15 commit f43652a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Diffusion.xcodeproj/project.pbxproj

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
/* End PBXContainerItemProxy section */
4242

4343
/* Begin PBXFileReference section */
44+
EB33A51E2954E1BC00B16357 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
4445
EBB5BA5229425BEE003A2A5B /* PipelineLoader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PipelineLoader.swift; sourceTree = "<group>"; };
4546
EBB5BA5929426E06003A2A5B /* Downloader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Downloader.swift; sourceTree = "<group>"; };
4647
EBE4438729488DCA00CDA605 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
@@ -124,6 +125,7 @@
124125
EBE755C7293E37DD00806B32 /* Diffusion */ = {
125126
isa = PBXGroup;
126127
children = (
128+
EB33A51E2954E1BC00B16357 /* Info.plist */,
127129
EBB5BA5129425B07003A2A5B /* Pipeline */,
128130
EBE7560A29411A5E00806B32 /* Views */,
129131
EBB5BA5929426E06003A2A5B /* Downloader.swift */,
@@ -487,6 +489,7 @@
487489
ENABLE_HARDENED_RUNTIME = YES;
488490
ENABLE_PREVIEWS = YES;
489491
GENERATE_INFOPLIST_FILE = YES;
492+
INFOPLIST_FILE = Diffusion/Info.plist;
490493
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
491494
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
492495
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
@@ -527,6 +530,7 @@
527530
ENABLE_HARDENED_RUNTIME = YES;
528531
ENABLE_PREVIEWS = YES;
529532
GENERATE_INFOPLIST_FILE = YES;
533+
INFOPLIST_FILE = Diffusion/Info.plist;
530534
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
531535
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
532536
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;

Diffusion/Info.plist

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPhotoLibraryAddUsageDescription</key>
6+
<string>To be able to save generated images to your Photo Library, you’ll need to allow this.</string>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)