-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check if RefreshControl is enabled on iOS #28360
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses an issue where replacing the content of the RefreshView on iOS inadvertently re-enables the progress spinner by adding additional checks and test coverage.
- Added a new test page in TestCases.HostApp to simulate replacing the RefreshView content
- Introduced corresponding automated tests in TestCases.Shared.Tests
- Updated the iOS MauiRefreshView to conditionally insert the refresh control based on its Enabled state
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
src/Controls/tests/TestCases.HostApp/Issues/Issue28343.cs | Added a test page to simulate RefreshView content replacement |
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue28343.cs | Added automated tests to verify the refresh spinner state |
src/Core/src/Platform/iOS/MauiRefreshView.cs | Updated TryInsertRefresh to check if the refresh control is enabled |
So what calls TryInsertRefresh later when IsEnabled ? |
MapIsEnabled triggers TryInsertRefresh Which is also validated by the following test |
/azp run |
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
/backport to main |
/backport to main |
Started backporting to main: https://github.com/dotnet/maui/actions/runs/13822921226 |
Description of Change
#28077 changed the ordering of some property mappers which revealed some scenarios where the order was hiding other bugs. For example, in this scenario if the user were to replace the content of the RefreshView that would cause it to become re-enabled.
Issues Fixed
Fixes #28343