Browse Source

Allow Saving Images to Library

Closes: #255
Changelog-Added: Allow Saving Images to Library
translations_damus-localizations-en-us-xcloc-localized-contents-en-us-xliff--master_es_419
Joel Klabo 2 years ago
committed by William Casarin
parent
commit
61a451184b
  1. 5
      damus/Components/ImageCarousel.swift
  2. 2
      damus/Info.plist

5
damus/Components/ImageCarousel.swift

@ -49,6 +49,11 @@ struct ImageContextMenuModifier: ViewModifier {
} label: {
Label("Copy Image", systemImage: "photo.on.rectangle")
}
Button {
UIImageWriteToSavedPhotosAlbum(someImage, nil, nil, nil)
} label: {
Label("Save Image", systemImage: "square.and.arrow.down")
}
}
Button {
showShareSheet = true

2
damus/Info.plist

@ -15,6 +15,8 @@
</array>
</dict>
</array>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>&quot;Granting Damus access to your photo library allows you to save photos.</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>river</string>

Loading…
Cancel
Save