Skip to content

Conversation

@kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Dec 16, 2025

Fixes #33169

Changes

  • Always detach the UIRefreshControl via scrollView.RefreshControl = null when removing it, simplifying cleanup.
  • Insert the refresh control directly into the UIScrollView instead of using the RefreshControl property, avoiding large-title navigation bar interference.
  • Removed the CanUseRefreshControlProperty helper tied to NavigationBar.PrefersLargeTitles, eliminating the conditional path that hid the control.

Rationale

  • Large-title navigation bars were preventing the refresh control from appearing correctly when attached via the RefreshControl property. Direct insertion ensures the control remains visible and usable.
Before After
Screen.Recording.2025-12-15.at.20.37.27.mov
Screen.Recording.2025-12-15.at.20.40.41.mov

Copilot AI review requested due to automatic review settings December 16, 2025 13:43
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Dec 16, 2025
@dotnet-policy-service
Copy link
Contributor

Hey there @@kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

Copy link
Contributor

Copilot AI left a 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 fixes an issue where RefreshControl did not appear correctly on iOS when used with large-title navigation bars. The fix simplifies the implementation by always using direct subview insertion instead of conditionally using the RefreshControl property.

Key Changes

  • Removed conditional logic based on NavigationBar.PrefersLargeTitles
  • Always use InsertSubview to add the refresh control to scrollable views
  • Always set RefreshControl = null during cleanup for consistency

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

Labels

community ✨ Community Contribution platform/ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS] Missing Refreshing handler behaves inconsistently when LargePageTitles are enabled

1 participant