forked from MeloNX/MeloNX
Fully Fix File Importer
This commit is contained in:
parent
ccdb8b76a8
commit
8b81cb39d7
Binary file not shown.
@ -29,6 +29,13 @@ struct MeloNXApp: App {
|
|||||||
@State var finished = false
|
@State var finished = false
|
||||||
@AppStorage("hasbeenfinished") var finishedStorage: Bool = false
|
@AppStorage("hasbeenfinished") var finishedStorage: Bool = false
|
||||||
|
|
||||||
|
init() {
|
||||||
|
let fixMethod = class_getInstanceMethod(UIDocumentPickerViewController.self, #selector(UIDocumentPickerViewController.fix_init(forOpeningContentTypes:asCopy:)))!
|
||||||
|
let origMethod = class_getInstanceMethod(UIDocumentPickerViewController.self, #selector(UIDocumentPickerViewController.init(forOpeningContentTypes:asCopy:)))!
|
||||||
|
method_exchangeImplementations(origMethod, fixMethod)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var body: some Scene {
|
var body: some Scene {
|
||||||
WindowGroup {
|
WindowGroup {
|
||||||
if finishedStorage {
|
if finishedStorage {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user