Repository navigation
[net11.0] Obsolete unused iOS image source extensions - #38107
Merged
Merged
Conversation
Direct callers can assign UIImageView.Image and update animation state, while custom handlers should use ImageSourcePartLoader for asynchronous loading. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:03 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38107Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38107" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:03 — with
GitHub Actions
Inactive
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:04 — with
GitHub Actions
Inactive
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:06 — with
GitHub Actions
Inactive
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:07 — with
GitHub Actions
Inactive
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:08 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The PR description references issue #13 (AppBar spec) which does not match the implemented change, so the metadata should be corrected to avoid misleading linkage.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Lite
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
src/Core/src/Platform/iOS/ImageViewExtensions.cs — The PR description references issue #13 (AppBar spec), but the actual change here only obsoletes… |
What changed in this PR
Marks two legacy iOS/MacCatalyst UIImageView-based image-source helper extension methods as obsolete (warning-only) to guide consumers toward the current ImageSourcePartLoader-based pipeline, without changing runtime behavior.
Changes:
- Obsoleted
ImageViewExtensions.UpdateSource(...)with guidance to setUIImageView.Imagedirectly and callUpdateIsAnimationPlaying(...). - Obsoleted
ImageViewExtensions.UpdateSourceAsync(...)with guidance to useImageSourcePartLoader.UpdateImageSourceAsync()+IImageSourcePartSetter.
| File | Description |
|---|---|
| src/Core/src/Platform/iOS/ImageViewExtensions.cs | Adds Obsolete attributes/messages to two shipped UIImageView image-source helper extension methods. |
Member
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
kubaflo
approved these changes
Sep 2, 2026
This branch was previously deployed
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Marks the shipped iOS and Mac Catalyst
ImageViewExtensions.UpdateSourceandUpdateSourceAsyncmethods obsolete without removing or changing their behavior.The synchronous helper is only a two-step convenience API; callers can set
UIImageView.Imagedirectly and callUpdateIsAnimationPlaying(IImageSourcePart). For asynchronous loading, the supported public extension point isImageSourcePartLoader.UpdateImageSourceAsync()with anIImageSourcePartSetter, which is the same abstraction used by current MAUI image, image button, button, and swipe-item handlers.Repository history shows these helpers have had no internal callers since the image-loading pipeline moved to
ImageSourcePartLoader. Public GitHub code search found no third-party calls to theUIImageView.UpdateSourceAsyncoverload outside MAUI source forks. The stale TODOs are removed as resolved.API review
This is warning-only obsoletion of two shipped platform APIs in .NET 11. Their signatures remain in the iOS and Mac Catalyst shipped API baselines;
ObsoleteAttributemetadata is not represented separately by the repository PublicAPI text format, so no baseline entries change. The replacement guidance names public, documented APIs and does not strand custom-handler consumers.Validation
net11.0targets .NET 11 Apple TFMs; iOS and Mac Catalyst CI are the platform validation gate.Issues Fixed
Candidate TODO cleanup 13; no GitHub issue.