sorry @Seeike

alright i'll give you co-author

Co-Authored-By: Seiike <122684677+Seeike@users.noreply.github.com>
This commit is contained in:
cranci1 2025-02-02 09:13:35 +01:00
parent c6f91f16f8
commit ae692907bd
3 changed files with 10 additions and 8 deletions

View file

@ -259,8 +259,8 @@
13EA2BD02D32D97400C1EBD7 /* CustomPlayer */ = {
isa = PBXGroup;
children = (
13EA2BD12D32D97400C1EBD7 /* CustomPlayer.swift */,
13EA2BD22D32D97400C1EBD7 /* Components */,
13EA2BD12D32D97400C1EBD7 /* CustomPlayer.swift */,
);
path = CustomPlayer;
sourceTree = "<group>";

View file

@ -21,6 +21,7 @@ struct CustomVideoPlayer: UIViewControllerRepresentable {
func updateUIViewController(_ uiViewController: AVPlayerViewController, context: Context) {
// yes? Like the plural of the famous american rapper ye? -IBHRAD
// low taper fade the meme is massive
}
}

View file

@ -42,13 +42,14 @@ struct SoraApp: App {
return
}
Task {
do {
let module = try await moduleManager.addModule(metadataUrl: moduleURL)
DropManager.shared.showDrop(title: "Added \(module.metadata.sourceName)", subtitle: "Check settings to select it", duration: 2.0, icon: UIImage(systemName: "app.badge.checkmark"))
} catch {
Logger.shared.log("Failed to add module from URL scheme: \(error.localizedDescription)", type: "Error")
}
let addModuleView = ModuleAdditionSettingsView(moduleUrl: moduleURL).environmentObject(moduleManager)
let hostingController = UIHostingController(rootView: addModuleView)
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
let window = windowScene.windows.first {
window.rootViewController?.present(hostingController, animated: true)
} else {
Logger.shared.log("Failed to present module addition view: No window scene found", type: "Error")
}
}
}