Open
Description
Description
Our iOS app only supports the UIInterfaceOrientation.LandscapeLeft, UIInterfaceOrientation.LandscapeRight Orientation.
But if we keep the device in Portrait mode and try to capture the image, the app throws the above-mentioned error and then app crashes.
Code
var cts = new CancellationTokenSource();
cts.CancelAfter(TimeSpan.FromMinutes(5));
await MediaGallery.CapturePhotoAsync(cts.Token);
Expected Behavior
The app should not crash.
Actual Behavior
When we support only landscape mode and try to capture images on iOS in portrait mode, the app crashes.
Version of SkiaSharp
2.88.8 (Deprecated)
Last Known Good Version of SkiaSharp
2.88.9 (Previous)
IDE / Editor
Visual Studio (macOS)
Platform / Operating System
iOS
Platform / Operating System Version
iPadOS 18.2.1
Devices
iPad 10th Gen
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Assignees
Type
Projects
Status
New
Activity