another.im-ios/ConversationsClassic/ConversationsClassicApp.swift

24 lines
750 B
Swift
Raw Normal View History

2024-06-19 15:15:27 +00:00
import Combine
import SwiftUI
@main
@MainActor
2024-06-19 15:15:27 +00:00
struct ConversationsClassic: App {
private let clientsStore = ClientsStore.shared
2024-10-15 11:39:23 +00:00
private let globalSettingsStore = GlobalSettingsStore.shared
init() {
// There's a bug on iOS 17 where sheet may not load with large title, even if modifiers are set, which causes some tests to fail
// https://stackoverflow.com/questions/77253122/swiftui-navigationstack-title-loads-inline-instead-of-large-when-sheet-is-pres
UINavigationBar.appearance().prefersLargeTitles = true
}
2024-06-19 15:15:27 +00:00
var body: some Scene {
WindowGroup {
RootView()
.environmentObject(clientsStore)
2024-10-15 11:39:23 +00:00
.environmentObject(globalSettingsStore)
2024-06-19 15:15:27 +00:00
}
}
}