Restructure project folders
This commit is contained in:
16
ABS Client Mac/Audiobookshelf swift/Views/ContentView.swift
Normal file
16
ABS Client Mac/Audiobookshelf swift/Views/ContentView.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
import SwiftUI
|
||||
|
||||
struct ContentView: View {
|
||||
@Environment(AppState.self) private var app
|
||||
|
||||
var body: some View {
|
||||
Group {
|
||||
if app.auth.isLoggedIn {
|
||||
MainView()
|
||||
} else {
|
||||
LoginView()
|
||||
}
|
||||
}
|
||||
.frame(minWidth: 900, minHeight: 600)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user