nextcloud / ios

📱 Nextcloud iOS App
https://itunes.apple.com/us/app/nextcloud/id1125420102
GNU General Public License v3.0
1.94k stars 875 forks source link

Allow drag and drop of files to, from, and within the app #1982

Open S0ulf3re opened 2 years ago

S0ulf3re commented 2 years ago

Right now with iOS/iPadOS 15, when you try to long press an item, it won't go anywhere. It would be nice if you could drag items like you can in the files app. Perhaps using UISpringLoadedInteraction.

It also seems that you can't drag and drop files into the app either, which seems really weird because that you can't do that because it's a fundamental part of working with files on any graphical system.

https://user-images.githubusercontent.com/50301900/166167877-b1190e04-a3a5-418b-a37b-448b5bc295d0.MOV

marinofaggiana commented 2 years ago

Hi @S0ulf3re thanks for your suggestion, if you want you can open a PR for try to develop this good improvement! What's do you think ?

S0ulf3re commented 2 years ago

Well, I guess I can certainly try.

S0ulf3re commented 2 years ago

Well, I made a branch here. I haven't worked with UIKit very much aside from filling in the blanks of SwiftUI (Which was calling a camera view), I have no idea of my abilities, but I guess it never hurts to try. After all, someone else can always pick up what I put down if they want to

S0ulf3re commented 2 years ago

So, @marinofaggiana, a quick question. Do you think that End-To-End Encryption or any other parts of Nextcloud's system would be of any disruption to creating something like this? Drag and drop apparently uses NSItemProvider, which is the same thing that copy and paste uses according to the Apple developer documentation