We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e18d1 commit ef18ba3Copy full SHA for ef18ba3
Sources/SnapshotPreviewsCore/SnapshotPreviewsCore.swift
@@ -42,7 +42,7 @@ public struct Preview: Identifiable {
42
self.orientation = orientation
43
self.layout = layout
44
displayName = preview.descendant("displayName") as? String
45
- let source = preview.descendant("source")!
+ let source = preview.descendant("source") ?? preview.descendant("dataSource", "preview")!
46
let _view: @MainActor () -> any View
47
if let source = source as? MakeViewProvider {
48
_view = {
0 commit comments