Skip to content

Commit ef18ba3

Browse files
committed
Fix xcode 26
1 parent d2e18d1 commit ef18ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SnapshotPreviewsCore/SnapshotPreviewsCore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public struct Preview: Identifiable {
4242
self.orientation = orientation
4343
self.layout = layout
4444
displayName = preview.descendant("displayName") as? String
45-
let source = preview.descendant("source")!
45+
let source = preview.descendant("source") ?? preview.descendant("dataSource", "preview")!
4646
let _view: @MainActor () -> any View
4747
if let source = source as? MakeViewProvider {
4848
_view = {

0 commit comments

Comments
 (0)