diff options
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/FormattedStringExtensions.cs | 2 | ||||
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/NavigationRenderer.cs | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/FormattedStringExtensions.cs b/Xamarin.Forms.Platform.iOS/Renderers/FormattedStringExtensions.cs index 0dfa38cd..89a09e86 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/FormattedStringExtensions.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/FormattedStringExtensions.cs @@ -16,7 +16,9 @@ namespace Xamarin.Forms.Platform.iOS if (span == null) return null; +#pragma warning disable 618 var font = span.Font != Font.Default ? span.Font : defaultFont; +#pragma warning restore 618 var fgcolor = span.ForegroundColor; if (fgcolor.IsDefault) diff --git a/Xamarin.Forms.Platform.iOS/Renderers/NavigationRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/NavigationRenderer.cs index 63330564..74e7fdd6 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/NavigationRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/NavigationRenderer.cs @@ -435,7 +435,9 @@ namespace Xamarin.Forms.Platform.iOS void HandlePropertyChanged(object sender, PropertyChangedEventArgs e) { +#pragma warning disable 618 if (e.PropertyName == NavigationPage.TintProperty.PropertyName) +#pragma warning restore 618 UpdateTint(); if (e.PropertyName == NavigationPage.BarBackgroundColorProperty.PropertyName) UpdateBarBackgroundColor(); @@ -643,7 +645,9 @@ namespace Xamarin.Forms.Platform.iOS void UpdateTint() { +#pragma warning disable 618 var tintColor = ((NavigationPage)Element).Tint; +#pragma warning restore 618 if (Forms.IsiOS7OrNewer) { |