24 lines
617 B
Swift
24 lines
617 B
Swift
import SwiftUI
|
|
|
|
@main
|
|
struct EzDentApp: App {
|
|
@StateObject private var library = PatientLibrary()
|
|
|
|
@StateObject private var connection = ServerConnection()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
PatientWorkspace(server: connection.active?.api)
|
|
.id(connection.active?.id)
|
|
.environmentObject(connection)
|
|
.environmentObject(library)
|
|
.frame(minWidth: 920, minHeight: 480)
|
|
}
|
|
.defaultSize(width: 1050, height: 680)
|
|
|
|
Settings {
|
|
ServerSettings().environmentObject(connection)
|
|
}
|
|
}
|
|
}
|