mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-19 07:32:08 +00:00
sorry @Seeike
alright i'll give you co-author Co-Authored-By: Seiike <122684677+Seeike@users.noreply.github.com>
This commit is contained in:
parent
c6f91f16f8
commit
ae692907bd
3 changed files with 10 additions and 8 deletions
|
|
@ -259,8 +259,8 @@
|
|||
13EA2BD02D32D97400C1EBD7 /* CustomPlayer */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
13EA2BD12D32D97400C1EBD7 /* CustomPlayer.swift */,
|
||||
13EA2BD22D32D97400C1EBD7 /* Components */,
|
||||
13EA2BD12D32D97400C1EBD7 /* CustomPlayer.swift */,
|
||||
);
|
||||
path = CustomPlayer;
|
||||
sourceTree = "<group>";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue