[iOS] Use a GeneralWrapperView for the EmptyView on CollectionView #26513
+81
−58
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.
Description of Change
When the empty view only had 1 button , no layout, it wasn't renderer correctly , the height was always 0. So we can reuse the same approach from CV2 , and reuse the code to fix both approaches for now.
This pull request includes several changes to the iOS handlers and template helpers in the
src/Controls/src/Core/Handlers/Items
directory. The most significant changes involve the introduction of a newGeneralWrapperView
class to replaceUIContainerView2
and updates to the handling of views in theTemplateHelpers
andTemplatedCell2
classes.Introduction of
GeneralWrapperView
:GeneralWrapperView
class insrc/Controls/src/Core/Platform/iOS/GeneralWrapperView.cs
to handle the wrapping of views, enabling better measurement and arrangement.Updates to
TemplateHelpers
:RealizeView
method inTemplateHelpers.cs
to replaceUIContainerView2
withGeneralWrapperView
, improving the handling of views without templates.using
directives and added new ones to reflect the changes in dependencies.Updates to
TemplatedCell2
:UIContainerView2
withGeneralWrapperView
in theBindVirtualView
method to ensure consistent handling of views.UIContainerView2
class fromTemplatedCell2.cs
, as it is now replaced byGeneralWrapperView
.Minor Cleanup:
ItemsViewController.cs
to maintain code cleanliness.To test
Test for issue #19609 should pass
Issues Fixed
Fixes #26508