perf(menubar): 隔离卡片动效并推进 1.1 低开销版本

This commit is contained in:
2026-11-07 12:33:18 +08:00
parent 668bdab0b8
commit 5787193754
19 changed files with 362 additions and 34 deletions
+4
View File
@@ -15,6 +15,10 @@ struct ResourceCard<Content: View>: View {
@ViewBuilder var content: () -> Content
var body: some View {
NativeContentHost(content: cardBody)
}
private var cardBody: some View {
GeometryReader { bounds in
VStack(alignment: .leading, spacing: 4) {
HStack(alignment: .center, spacing: 6) {