Skip to content

Commit 776ed93

Browse files
committed
Add public initializer for SwiftUI view predicate
1 parent 60f586a commit 776ed93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DatadogRUM/Sources/Instrumentation/Views/SwiftUI/SwiftUIRUMViewsPredicate.swift

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public protocol SwiftUIRUMViewsPredicate {
2424
/// This implementation tracks all detected SwiftUI views with their extracted names.
2525
/// The view name in RUM Explorer will match the name extracted from the SwiftUI view.
2626
public struct DefaultSwiftUIRUMViewsPredicate: SwiftUIRUMViewsPredicate {
27+
public init() {}
28+
2729
public func rumView(for extractedViewName: String) -> RUMView? {
2830
return RUMView(name: extractedViewName)
2931
}

0 commit comments

Comments
 (0)