1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-16 16:23:29 +00:00

PM-3350 Fixed iOS Share extension lazy views loading and an issue with the avatar loading. Also discovered issue with TapGestureRecognizer not working on MAUI Embedding

This commit is contained in:
Federico Maccaroni
2023-11-13 21:30:56 -03:00
parent 5712639492
commit 5f12bb9747
7 changed files with 33 additions and 44 deletions

View File

@@ -9,10 +9,10 @@ namespace Bit.iOS.Core.Handlers
{
public static void Setup()
{
EntryHandler.Mapper.AppendToMapping("CustomEntryHandler", (handler, editor) =>
EntryHandler.Mapper.AppendToMapping("CustomEntryHandler", (handler, entry) =>
{
handler.PlatformView.ClearButtonMode = UITextFieldViewMode.WhileEditing;
UpdateTintColor(handler, editor);
UpdateTintColor(handler, entry);
iOSHelpers.SetBottomBorder(handler.PlatformView);
if (!ThemeHelpers.LightTheme)
@@ -24,9 +24,10 @@ namespace Bit.iOS.Core.Handlers
EntryHandler.Mapper.AppendToMapping(nameof(IEntry.TextColor), UpdateTintColor);
}
private static void UpdateTintColor(IEntryHandler handler, IEntry editor)
private static void UpdateTintColor(IEntryHandler handler, IEntry entry)
{
handler.PlatformView.TintColor = editor.TextColor.ToPlatform();
// Note: the default black value is to avoid an error on the iOS extensions while lazy loading a view
handler.PlatformView.TintColor = entry.TextColor.ToPlatform(Colors.Black);
}
}
}