From f3568a5bb74c196762f9289838c798529ff3a44c Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Wed, 21 Feb 2024 10:04:46 -0300 Subject: [PATCH] PM-5154 [Passkeys iOS] Fixed empty top space on autofill password list --- src/iOS.Autofill/LoginListViewController.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/iOS.Autofill/LoginListViewController.cs b/src/iOS.Autofill/LoginListViewController.cs index 473f9e2a9..3051be61a 100644 --- a/src/iOS.Autofill/LoginListViewController.cs +++ b/src/iOS.Autofill/LoginListViewController.cs @@ -13,6 +13,7 @@ using Bit.iOS.Core.Controllers; using Bit.iOS.Core.Utilities; using Bit.iOS.Core.Views; using CoreFoundation; +using CoreGraphics; using Foundation; using UIKit; @@ -61,8 +62,12 @@ namespace Bit.iOS.Autofill TableView.EstimatedRowHeight = 44; TableView.BackgroundColor = ThemeHelpers.BackgroundColor; TableView.Source = new TableSource(this); - TableView.SectionHeaderHeight = 55; - TableView.RegisterClassForHeaderFooterViewReuse(typeof(HeaderItemView), HEADER_SECTION_IDENTIFIER); + if (Context.IsCreatingPasskey) + { + TableView.SectionHeaderHeight = 55; + TableView.RegisterClassForHeaderFooterViewReuse(typeof(HeaderItemView), HEADER_SECTION_IDENTIFIER); + } + if (UIDevice.CurrentDevice.CheckSystemVersion(15, 0)) { TableView.SectionHeaderTopPadding = 0; @@ -289,7 +294,7 @@ namespace Bit.iOS.Autofill return headerItemView; } - return base.GetViewForHeader(tableView, section); + return new UIView(CGRect.Empty);// base.GetViewForHeader(tableView, section); } catch (Exception ex) {