Skip to content

Commit

Permalink
[iOS] Porting fix #24830
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho committed Oct 18, 2024
1 parent 11a183f commit 87303ab
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,14 +401,13 @@ protected virtual CGRect DetermineEmptyViewFrame()
internal void UpdateView(object view, DataTemplate viewTemplate, ref UIView uiView, ref VisualElement formsElement)
{
// Is view set on the ItemsView?
if (view == null)
if (view == null && viewTemplate is null)
{
if (formsElement != null)
{
//Platform.GetRenderer(formsElement)?.DisposeRendererAndChildren();
}


uiView?.Dispose();
uiView = null;

Expand Down

0 comments on commit 87303ab

Please sign in to comment.