diff --git a/Samples/iOS-SwiftUI/iOS-SwiftUI/ContentView.swift b/Samples/iOS-SwiftUI/iOS-SwiftUI/ContentView.swift index 16cfddc9a1..be7b0b0f7f 100644 --- a/Samples/iOS-SwiftUI/iOS-SwiftUI/ContentView.swift +++ b/Samples/iOS-SwiftUI/iOS-SwiftUI/ContentView.swift @@ -118,14 +118,16 @@ struct ContentView: View { return SentryTracedView("Content View Body") { NavigationView { VStack(alignment: HorizontalAlignment.center, spacing: 16) { - Text(getCurrentTracer()?.transactionContext.name ?? "NO SPAN") - .accessibilityIdentifier("TRANSACTION_NAME") - Text(getCurrentTracer()?.transactionContext.spanId.sentrySpanIdString ?? "NO ID") - .accessibilityIdentifier("TRANSACTION_ID") - - Text(getCurrentTracer()?.transactionContext.origin ?? "NO ORIGIN") - .accessibilityIdentifier("TRACE_ORIGIN") - + Group { + Text(getCurrentTracer()?.transactionContext.name ?? "NO SPAN") + .accessibilityIdentifier("TRANSACTION_NAME") + Text(getCurrentTracer()?.transactionContext.spanId.sentrySpanIdString ?? "NO ID") + .accessibilityIdentifier("TRANSACTION_ID") + .sentryReplayMask() + + Text(getCurrentTracer()?.transactionContext.origin ?? "NO ORIGIN") + .accessibilityIdentifier("TRACE_ORIGIN") + }.sentryReplayUnmask() SentryTracedView("Child Span") { VStack { Text(getCurrentSpan()?.spanDescription ?? "NO SPAN") @@ -189,7 +191,7 @@ struct ContentView: View { NavigationLink(destination: LoremIpsumView()) { Text("Lorem Ipsum") - }.sentryReplayMask() + } NavigationLink(destination: UIKitScreen()) { Text("UIKit Screen") @@ -200,7 +202,6 @@ struct ContentView: View { } } .background(Color.white) - .sentryReplayUnmask() } SecondView() }