using Bit.App.Controls; using Microsoft.Maui.Handlers; using Microsoft.Maui.Platform; using UIKit; namespace Bit.iOS.Core.Handlers { public class LabelHandlerMappings { // TODO: [Maui-Migration] See if the SelectableLabel is needed. //public static void Setup() //{ // LabelHandler.Mapper.AppendToMapping(nameof(ILabel.TextColor), (handler, label) => // { // if (label is SelectableLabel selectableLabel) // { // handler.PlatformView.Selectable = true; // handler.PlatformView.Editable = false; // handler.PlatformView.ScrollEnabled = false; // handler.PlatformView.TextContainerInset = UIEdgeInsets.Zero; // handler.PlatformView.TextContainer.LineFragmentPadding = 0; // handler.PlatformView.BackgroundColor = UIColor.Clear; // handler.PlatformView.Text = selectableLabel.Text; // handler.PlatformView.TextColor = selectableLabel.TextColor.ToPlatform(); // } // }); //} // TODO: [Maui-Migration] Check if needed to migrate given that MAUI should be automatically change the font size based on OS accessbiility //protected override void OnElementChanged(ElementChangedEventArgs