-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUM-7176 [SR] Record SwiftUI raster images #2123
Conversation
a1b5d33
to
89ed044
Compare
...order/ViewTreeSnapshotProducer/ViewTreeSnapshot/NodeRecorders/SwiftUI/Image+Reflection.swift
Show resolved
Hide resolved
Datadog ReportBranch report: ✅ 0 Failed, 3570 Passed, 0 Skipped, 2m 26.68s Total Time 🔻 Code Coverage Decreases vs Default Branch (5) |
) | ||
} | ||
case .unknown: | ||
return context.builder.createPlaceholderWireframe( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could send some telemetry to gather which image types we don't support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have a ticket for adding telemetry 👍
89ed044
to
150267a
Compare
064c86c
to
f7f21c2
Compare
36b8751
to
f5e26dc
Compare
f5e26dc
to
952023c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I left some comment.
...Sources/Recorder/ViewTreeSnapshotProducer/ViewTreeSnapshot/NodeRecorders/SwiftUI/Image.swift
Outdated
Show resolved
Hide resolved
DatadogSessionReplay/Sources/Recorder/Utilities/SwfitUIImage+SessionReplay.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, well done!
DatadogSessionReplay/Sources/Recorder/Utilities/CGImage+SessionReplay.swift
Outdated
Show resolved
Hide resolved
DatadogSessionReplay/Sources/Recorder/Utilities/CGImage+SessionReplay.swift
Outdated
Show resolved
Hide resolved
/merge |
Devflow running:
|
What and why?
This PR introduces support for recording SwiftUI raster images in Session Replay.
How?
SwiftUI.GraphicsImage
and extractCGImage
.Note: Global privacy settings and overrides are not yet applied and will be addressed in separate PRs.
Review checklist
make api-surface
)