Initialization of UIDocumentPickerViewController in iOS 14

前端 未结 1 999
心在旅途
心在旅途 2021-02-20 07:50

I have a UIDocumentPickerViewController that picks only images. This works fine in iOS 13:

let supportedTyp         


        
1条回答
  •  再見小時候
    2021-02-20 08:26

    Add import UniformTypeIdentifiers to your swift file to get access to UTType

    See the documentation for more usages.

    And the WWDC2020 video "Build document-based apps in SwiftUI" for a practical demo.

    0 讨论(0)
提交回复
热议问题