Skip to content

Commit

Permalink
fix(iOS): CommandBar Back Button Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Jan 26, 2021
1 parent c757bcd commit 5dcae11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Uno.UI/Controls/CommandBarRenderer.iOS.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -113,8 +113,9 @@ protected override void Render()

// CommandBarExtensions.BackButtonIcon
var backButtonIcon = Element.GetValue(BackButtonIconProperty) is BitmapIcon bitmapIcon
? UIImageHelper.FromUri(bitmapIcon.UriSource)
? UIImageHelper.FromUri(bitmapIcon.UriSource)?.ImageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)
: null;

Native.BackIndicatorImage = backButtonIcon;
Native.BackIndicatorTransitionMaskImage = backButtonIcon;
}
Expand Down

0 comments on commit 5dcae11

Please sign in to comment.