[Feature] Directly Share Photos and Videos
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:
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
Edited by Apollo Zhu