Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[iOS] Remove deprecated BeginImageContextWithOptions #15833

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Conversation

jfversluis
Copy link
Member

@jfversluis jfversluis commented Nov 3, 2023

This change removes the deprecated UIGraphics.BeginImageContextWithOptions and substitutes it with the now recommended UIGraphicsImageRenderer in a. couple of places. This also prevents crashes that are now happening on iOS 17/Xcode 15.

The UIGraphicsImageRenderer is already supported since iOS 10 and up so it should not give us any issues on older versions.

Fixes #15827

Closes #15828

@jfversluis jfversluis added the iOS 17 Issues/PRs that are specific to iOS 17/Xcode 15 label Nov 3, 2023
@jfversluis jfversluis changed the title [WIP] Remove deprecated BeginImageContextWithOptions [iOS] Remove deprecated BeginImageContextWithOptions Nov 6, 2023
@jfversluis jfversluis merged commit 430754b into 5.0.0 Nov 8, 2023
10 checks passed
@jfversluis jfversluis deleted the fix-15827 branch November 8, 2023 13:17
@thisisthekap
Copy link
Contributor

@jfversluis Any ETA on the next release including this fix?

@SkattegardConsid
Copy link

FYI, it was release in Xamarin Forms 5.0.0.2622

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS 17 Issues/PRs that are specific to iOS 17/Xcode 15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NSInternalInconsistencyException Reason: UIGraphicsBeginImageContext() failed to allocate CGBitampContext
3 participants