Skip to content

[BUG] iOS app throws the unable to convert skiasharp.views.maui.handlers.skcanvasviewhandler to uikit.uiview and then app is crashed #3140

Open
@safvanmansuri-cygnet

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions