File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/Core/src/Platform/iOS Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,20 @@ public override void LayoutSubviews()
5858 // arrangement with an adjusted starting point and recalculating the content offset.
5959 if ( _previousEffectiveUserInterfaceLayoutDirection != EffectiveUserInterfaceLayoutDirection )
6060 {
61+ // In mac platform, Scrollbar is not updated based on FlowDirection, so resetting the scroll indicators
62+ // It's a native limitation; to maintain platform consistency, a hack fix is applied to show the Scrollbar based on the FlowDirection.
63+ if ( OperatingSystem . IsMacCatalyst ( ) && _previousEffectiveUserInterfaceLayoutDirection is not null )
64+ {
65+ bool showsVertical = ShowsVerticalScrollIndicator ;
66+ bool showsHorizontal = ShowsHorizontalScrollIndicator ;
67+
68+ ShowsVerticalScrollIndicator = false ;
69+ ShowsHorizontalScrollIndicator = false ;
70+
71+ ShowsVerticalScrollIndicator = showsVertical ;
72+ ShowsHorizontalScrollIndicator = showsHorizontal ;
73+ }
74+
6175 if ( EffectiveUserInterfaceLayoutDirection == UIUserInterfaceLayoutDirection . RightToLeft )
6276 {
6377 var horizontalOffset = contentSize . Width - crossPlatformBounds . Width ;
You can’t perform that action at this time.
0 commit comments