Fully Fix File Importer

This commit is contained in:
Stossy11 2025-03-29 17:37:42 +11:00
parent ccdb8b76a8
commit 8b81cb39d7
2 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,13 @@ struct MeloNXApp: App {
@State var finished = 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 {
WindowGroup {
if finishedStorage {