22 lines
583 B
Swift
22 lines
583 B
Swift
import SwiftUI
|
|
|
|
public struct DashboardView: View {
|
|
@Environment(\.extensionProfile) private var extensionProfile
|
|
|
|
public init() {}
|
|
|
|
public var body: some View {
|
|
viewBuilder {
|
|
if ApplicationLibrary.inPreview {
|
|
ActiveDashboardView()
|
|
} else if let profile = extensionProfile.wrappedValue {
|
|
ActiveDashboardView().environmentObject(profile)
|
|
} else {
|
|
FormView {
|
|
InstallProfileButton()
|
|
}
|
|
}
|
|
}.navigationTitle("Dashboard")
|
|
}
|
|
}
|