From c7ba465970915761a9938e5aa1b5bbd3cb22d4ac Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 23 Dec 2017 22:56:17 -0500 Subject: [PATCH] TabBarVisible logic fix --- src/iOS/Services/DeviceActionService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/iOS/Services/DeviceActionService.cs b/src/iOS/Services/DeviceActionService.cs index 82da6657a..e10747608 100644 --- a/src/iOS/Services/DeviceActionService.cs +++ b/src/iOS/Services/DeviceActionService.cs @@ -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)); } } }