Restore system card context menu preview
This commit is contained in:
1 parent
08d6bcbbf1
commit
9f1f64de2b
2 files changed
+1
-3
No files matched your search
@@ -151,8 +151,6 @@ struct MobileActionCard<Content: View, Actions: View>: View {
|
||||
cardSurface
|
||||
.contextMenu {
|
||||
actions
|
||||
} preview: {
|
||||
cardSurface
|
||||
}
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
|
||||
@@ -185,7 +185,7 @@ struct MobileNavigationParityTests {
|
||||
#expect(cards.contains(".contentShape([.interaction, .contextMenuPreview], shape)"))
|
||||
#expect(cards.contains(".containerShape("))
|
||||
#expect(!cards.contains(".contentShape(.rect)"))
|
||||
#expect(cards.contains("} preview: {\n cardSurface"))
|
||||
#expect(!cards.contains("} preview: {"))
|
||||
#expect(!cards.contains("sourceSize"))
|
||||
#expect(!cards.contains(".frame(width: 320"))
|
||||
|
||||
|
||||
Reference in new issue
Block a user