Skip to content

[Feature] Directly Share Photos and Videos

Apollo Zhu requested to merge apollozhu/kdeconnect-ios:select-photos into master

Motivation

Currently, it's very inconvenient to send a photo saved in the Photos Library. Users expect to be able to directly select photos/videos from the Photos Library in-app without any additional steps (e.g. exporting to Files app and then selecting as a normal file). The Safari file selection dialog (which can be triggered using examples on https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept) looks like:

There are 3 options in the dropdown: Photo Library, Take Photo or Video, and Choose Files with their respective SF Symbol icons

Approach

Integrate 3rd party dependency https://github.com/UWAppDev/SwiftUI-MediaPicker (which is under MIT License) through Swift Package Manager. Requires latest Xcode 13.2.1 release because it uses Swift Concurrency features and KDE Connect iOS supports iOS 14.



Changelog

  • Added SwiftUI-MediaPicker's pre-release 0.0.1 (up to next major) as a dependency
  • Changed "Send files" to "Send Files" to be consistent with "Push Local Clipboard"
  • Implemented sending images and videos from Photos Library

Demo

Share_Photos

Edited by Apollo Zhu

Merge request reports