Nextcloud Login refactoring

This commit is contained in:
VincentMeilinger
2025-05-31 11:12:14 +02:00
parent 5acf3b9c4f
commit 48b31a7997
29 changed files with 1277 additions and 720 deletions

View File

@@ -21,7 +21,7 @@ struct Nextcloud_Cookbook_iOS_ClientApp: App {
EmptyView()
} else {
MainView()
.modelContainer(for: Recipe.self)
.modelContainer(for: [Recipe.self, GroceryItem.self, RecipeGroceries.self])
}
}
.transition(.slide)
@@ -30,6 +30,10 @@ struct Nextcloud_Cookbook_iOS_ClientApp: App {
.init(identifier: language ==
SupportedLanguage.DEVICE.rawValue ? (Locale.current.language.languageCode?.identifier ?? "en") : language)
)
.onAppear {
AuthManager.shared.loadAuthString() // Load the auth string as soon as possible
}
}
}
}