Only adjust insets on phone devices

This commit is contained in:
kspearrin 2018-04-07 11:32:01 -04:00
parent 1a4ba36820
commit 5a3d86a12a

View file

@ -58,7 +58,10 @@ namespace Bit.iOS.Controls
// Only show icon // Only show icon
// ref: https://stackoverflow.com/questions/26494130/remove-tab-bar-item-text-show-only-image // ref: https://stackoverflow.com/questions/26494130/remove-tab-bar-item-text-show-only-image
item.Title = string.Empty; item.Title = string.Empty;
item.ImageInsets = new UIEdgeInsets(6, 0, -6, 0); if(UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
{
item.ImageInsets = new UIEdgeInsets(6, 0, -6, 0);
}
// Set selected icon // Set selected icon
icon = string.Concat(icon, "_selected"); icon = string.Concat(icon, "_selected");