- Implement MailRootView with navigation and sidebar for mail management. - Create MailSidebarView, ThreadListView, and ThreadDetailView for displaying mail content. - Introduce ComposeView for composing new messages. - Add MailTheme for consistent styling across mail components. - Implement adaptive layouts for iOS and macOS. - Create unit tests for AppNavigationCommand and AppViewModel to ensure correct functionality.
20 lines
421 B
Swift
20 lines
421 B
Swift
import SwiftUI
|
|
|
|
@main
|
|
struct SocialIOApp: App {
|
|
@State private var model = AppViewModel()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
MailRootView(model: model)
|
|
.tint(MailTheme.accent)
|
|
.onOpenURL { url in
|
|
model.apply(url: url)
|
|
}
|
|
}
|
|
#if os(macOS)
|
|
.defaultSize(width: 1440, height: 900)
|
|
#endif
|
|
}
|
|
}
|