1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-03 00:53:27 +00:00

only show icons in nav

This commit is contained in:
Kyle Spearrin
2017-10-30 14:13:09 -04:00
parent c057be17d0
commit 1f0f94746b
2 changed files with 6 additions and 7 deletions

View File

@@ -56,6 +56,12 @@ namespace Bit.iOS.Controls
try
{
// Only show icon
// ref: https://stackoverflow.com/questions/26494130/remove-tab-bar-item-text-show-only-image
item.Title = string.Empty;
item.ImageInsets = new UIEdgeInsets(6, 0, -6, 0);
// Set selected icon
icon = string.Concat(icon, "_selected");
if(item?.SelectedImage?.AccessibilityIdentifier == icon)
{