summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/Renderers/SearchBarRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/SearchBarRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/SearchBarRenderer.cs12
1 files changed, 3 insertions, 9 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/SearchBarRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/SearchBarRenderer.cs
index 8c54702..96fb020 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/SearchBarRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/SearchBarRenderer.cs
@@ -107,16 +107,10 @@ namespace Xamarin.Forms.Platform.iOS
if (_defaultTintColor == null)
{
- if (Forms.IsiOS7OrNewer)
- _defaultTintColor = Control.BarTintColor;
- else
- _defaultTintColor = Control.TintColor;
+ _defaultTintColor = Control.BarTintColor;
}
-
- if (Forms.IsiOS7OrNewer)
- Control.BarTintColor = color.ToUIColor(_defaultTintColor);
- else
- Control.TintColor = color.ToUIColor(_defaultTintColor);
+
+ Control.BarTintColor = color.ToUIColor(_defaultTintColor);
if (color.A < 1)
Control.SetBackgroundImage(new UIImage(), UIBarPosition.Any, UIBarMetrics.Default);