Merge profile to dashboard

This commit is contained in:
世界
2025-11-26 22:25:52 +08:00
parent 4f0d1098e6
commit 264c37218c
27 changed files with 1590 additions and 306 deletions
@@ -0,0 +1,48 @@
import Library
import SwiftUI
@MainActor
public struct SheetContent<Content: View>: View {
private let title: String
private let content: Content
public init(_ title: String, @ViewBuilder content: () -> Content) {
self.title = title
self.content = content()
}
public var body: some View {
#if os(iOS) || os(tvOS)
NavigationStackCompat {
content
.navigationTitle(title)
#if os(iOS)
.navigationBarTitleDisplayMode(.inline)
#endif
}
.presentationDetentsIfAvailable()
#endif
}
}
@MainActor
public struct GroupsSheetContent: View {
public init() {}
public var body: some View {
SheetContent("Groups") {
GroupListView()
}
}
}
@MainActor
public struct ConnectionsSheetContent: View {
public init() {}
public var body: some View {
SheetContent("Connections") {
ConnectionListView()
}
}
}