Text view adventures, Part 3

from blog The Desolation of Blog, | ↗ original
Part 1 and Part 2 of my text view adventures were about NSTextView for Mac. Part 3 here and Part 4 in the future will be about UITextView for iOS. In Part 2 I wrote about how to handle pasting of arbitrary file types, including movies, into NSTextView. You might wonder how UITextView handles this. The answer is… not very well. On iOS 12, "Copy" is not even listed among the actions when you share a movie from Photos app. However, you can "Save to Files", and Files app will allow you to copy a movie file. If you want to allow users to save files "On My iPhone" in Files app, you need to add LSSupportsOpeningDocumentsInPlace and UIFileSharingEnabled to your app's Info.plist file.