[ADD] Error log view

This commit is contained in:
Fabian Thies
2023-02-04 13:07:04 +01:00
parent 767d878051
commit fbc754d8b7
6 changed files with 289 additions and 1 deletions

View File

@@ -154,6 +154,12 @@ struct SettingsView: View {
SwiftUI.Button(action: resetImageCache) {
Text(L10n.SettingsView.resetImageCache)
}
NavigationLink {
ErrorLogView()
} label: {
Text("Show Error Log")
}
} header: {
Text(L10n.SettingsView.debug)
}
@@ -193,7 +199,11 @@ struct SettingsView: View {
func connectAppleID() {
AppManager.shared.authenticate(presentingViewController: nil) { (result) in
guard let rootViewController = UIApplication.shared.keyWindow?.rootViewController else {
return
}
AppManager.shared.authenticate(presentingViewController: rootViewController) { (result) in
DispatchQueue.main.async {
switch result
{