perf(menubar): 隔离卡片动效并推进 1.1 低开销版本
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user