forked from CommunityToolkit/Maui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug CameraView on iOS: camera preview is not always rotated corre…
…ct and photos are rotated (CommunityToolkit#2312) * Fix bug CameraView on iOS: camera preview is not always rotated correct and photos are rotated * Update src/CommunityToolkit.Maui.Camera/CameraManager.macios.cs Co-authored-by: Shaun Lawrence <[email protected]> * Removed the null forgiving operator ! and added null checks. Removed TODO comment. * Add exception message to the OnMediaCaptureFailed call * Use `static` on iOS Devices * Assign field `previewView`, Use pattern matching on `AVMediaTypes.Video.GetConstant()` , remove iOS 11 and iOS 13 checks since `CommunityToolkit.Maui.Camera` only supports iOS 15+ * Initialize `previewView` first --------- Co-authored-by: Shaun Lawrence <[email protected]> Co-authored-by: James Crutchley <[email protected]> Co-authored-by: Brandon Minnick <[email protected]>
- Loading branch information
1 parent
e97b4a6
commit 3c44236
Showing
2 changed files
with
71 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters