TabBarVisible logic fix

This commit is contained in:
Kyle Spearrin 2017-12-23 22:56:17 -05:00
parent 937ad444da
commit c7ba465970

View file

@ -12,6 +12,7 @@ using System.Threading.Tasks;
using Bit.App.Models.Page;
using Bit.iOS.Core.Views;
using CoreGraphics;
using System.Linq;
namespace Bit.iOS.Services
{
@ -322,7 +323,8 @@ namespace Bit.iOS.Services
private bool TabBarVisible()
{
var vc = GetPresentedViewController();
return vc?.TabBarController != null && !vc.TabBarController.TabBar.Hidden;
return vc != null && (vc is UITabBarController ||
(vc.ChildViewControllers?.Any(c => c is UITabBarController) ?? false));
}
}
}