Skip to content

Commit 38b5a72

Browse files
Updated the code changes.
1 parent ea2b6c7 commit 38b5a72

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Core/src/Platform/iOS/MauiPageControl.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,12 @@ void UpdateIndicatorShape()
107107
}
108108

109109
var uiPageControlContentView = Subviews[0];
110-
if (uiPageControlContentView.Subviews.Length > 1)
110+
if (uiPageControlContentView.Subviews.Length > 0)
111111
{
112-
// Retrieve the UIPageControl indicator content view from the first index of the content view
113-
var uiPageControlIndicatorContentView = uiPageControlContentView.Subviews[1];
114-
SetIndicatorShape(uiPageControlIndicatorContentView, IsSquare);
112+
foreach (var uiPageControlIndicatorContentView in uiPageControlContentView.Subviews)
113+
{
114+
SetIndicatorShape(uiPageControlIndicatorContentView, IsSquare);
115+
}
115116
}
116117
}
117118

0 commit comments

Comments
 (0)