From 734d2632dc9ce110fd44b0086a7fd0be50a25ac4 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 28 Jun 2016 08:21:39 -0400 Subject: [PATCH] added custom font renderers for ios dynamic text --- src/iOS/Controls/CustomLabelRenderer.cs | 40 +++++++++++++++++++++++ src/iOS/Controls/ExtendedEntryRenderer.cs | 2 ++ src/iOS/iOS.csproj | 1 + 3 files changed, 43 insertions(+) create mode 100644 src/iOS/Controls/CustomLabelRenderer.cs diff --git a/src/iOS/Controls/CustomLabelRenderer.cs b/src/iOS/Controls/CustomLabelRenderer.cs new file mode 100644 index 000000000..adc0faaf5 --- /dev/null +++ b/src/iOS/Controls/CustomLabelRenderer.cs @@ -0,0 +1,40 @@ +using System; +using Bit.iOS.Controls; +using UIKit; +using Xamarin.Forms; +using Xamarin.Forms.Platform.iOS; + +[assembly: ExportRenderer(typeof(Label), typeof(CustomLabelRenderer))] +namespace Bit.iOS.Controls +{ + public class CustomLabelRenderer : LabelRenderer + { + protected override void OnElementChanged(ElementChangedEventArgs