We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea2b6c7 commit 38b5a72Copy full SHA for 38b5a72
src/Core/src/Platform/iOS/MauiPageControl.cs
@@ -107,11 +107,12 @@ void UpdateIndicatorShape()
107
}
108
109
var uiPageControlContentView = Subviews[0];
110
- if (uiPageControlContentView.Subviews.Length > 1)
+ if (uiPageControlContentView.Subviews.Length > 0)
111
{
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);
+ foreach (var uiPageControlIndicatorContentView in uiPageControlContentView.Subviews)
+ {
+ SetIndicatorShape(uiPageControlIndicatorContentView, IsSquare);
115
+ }
116
117
118
0 commit comments