From 14b2960f307773c900ea4db2d8d1aee7bdf284c6 Mon Sep 17 00:00:00 2001 From: Dinis Vieira Date: Wed, 18 Oct 2023 01:21:19 +0100 Subject: [PATCH] PM-3350 Removed ButtonHandlerMappings and some other code related with fonts as MAUI is taking care of Accessibility and no custom code should be needed Migrated SelectableLabelRenderer to Handler Cleaned LabelHandlerMappings and added logic to migrate the CustomLabelRenderer --- .../Handlers/ButtonHandlerMappings.cs | 21 ----- src/iOS.Core/Handlers/EntryHandlerMappings.cs | 2 - src/iOS.Core/Handlers/LabelHandlerMappings.cs | 85 +++---------------- .../Handlers/SelectableLabelHandler.cs | 62 ++++++++++++++ src/iOS.Core/Utilities/iOSCoreHelpers.cs | 4 +- 5 files changed, 74 insertions(+), 100 deletions(-) delete mode 100644 src/iOS.Core/Handlers/ButtonHandlerMappings.cs create mode 100644 src/iOS.Core/Handlers/SelectableLabelHandler.cs diff --git a/src/iOS.Core/Handlers/ButtonHandlerMappings.cs b/src/iOS.Core/Handlers/ButtonHandlerMappings.cs deleted file mode 100644 index 04104cd77..000000000 --- a/src/iOS.Core/Handlers/ButtonHandlerMappings.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using Bit.iOS.Core.Utilities; - -namespace Bit.iOS.Core.Handlers -{ - public class ButtonHandlerMappings - { - public static void Setup() - { - // TODO: [Maui-Migration] Check if this is needed given that on MAUI FontAutoScalingEnabled is true by default. - //Microsoft.Maui.Handlers.ButtonHandler.Mapper.AppendToMapping("CustomButtonHandler", (handler, button) => - //{ - // var pointSize = iOSHelpers.GetAccessibleFont