Environment
- Shake iOS SDK version: 17.2.2
- iOS version: 17+, 18+
- SwiftUI application
Description
The SDK crashes when capturing screenshots in SwiftUI views with complex hierarchies during view transitions. The crash occurs due to invalid view bounds in transitional states.
Affected view structure:
TabView with PageTabViewStyle
AVPlayerViewController via UIViewControllerRepresentable
- Overlay layers with transitions
Workaround
.onAppear {
Shake.configuration.isScreenshotIncluded = false
}
.onDisappear {
Shake.configuration.isScreenshotIncluded = true
}
Feature Request
-
Defensive screenshot capture: Handle invalid/transitional view bounds gracefully (skip or retry) rather than crashing.
-
SwiftUI-compatible private view API: The addPrivateView() API is documented as unavailable for SwiftUI. A SwiftUI modifier to exclude views from screenshots would be useful.
Happy to provide more details or test fixes.
Environment
Description
The SDK crashes when capturing screenshots in SwiftUI views with complex hierarchies during view transitions. The crash occurs due to invalid view bounds in transitional states.
Affected view structure:
TabViewwithPageTabViewStyleAVPlayerViewControllerviaUIViewControllerRepresentableWorkaround
Feature Request
Defensive screenshot capture: Handle invalid/transitional view bounds gracefully (skip or retry) rather than crashing.
SwiftUI-compatible private view API: The
addPrivateView()API is documented as unavailable for SwiftUI. A SwiftUI modifier to exclude views from screenshots would be useful.Happy to provide more details or test fixes.