Skip to content

Commit

Permalink
fix(CommandBar): Remove 1px "shadow" from iOS native CommandBar
Browse files Browse the repository at this point in the history
  • Loading branch information
kazo0 committed Feb 21, 2022
1 parent d830b42 commit 0a4eb04
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Uno.UI/Controls/CommandBar/CommandBarRenderer.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@ protected override void Render()
Native.BackIndicatorTransitionMaskImage = backButtonIcon;
}

// Remove 1px "shadow" line from the bottom of UINavigationBar
// The legacy customization (iOS12 and lower) to remove this shadow is done in the above switch for Background property
if (UIDevice.CurrentDevice.CheckSystemVersion(13, 0))
{
appearance.ShadowColor = UIColor.Clear;
}

Native.CompactAppearance = appearance;
Native.StandardAppearance = appearance;
Native.ScrollEdgeAppearance = appearance;
Expand Down

0 comments on commit 0a4eb04

Please sign in to comment.