summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/Extensions/PlatformConfigurationExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Extensions/PlatformConfigurationExtensions.cs')
-rw-r--r--Xamarin.Forms.Platform.iOS/Extensions/PlatformConfigurationExtensions.cs11
1 files changed, 2 insertions, 9 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Extensions/PlatformConfigurationExtensions.cs b/Xamarin.Forms.Platform.iOS/Extensions/PlatformConfigurationExtensions.cs
index f2932e3a..f61837f2 100644
--- a/Xamarin.Forms.Platform.iOS/Extensions/PlatformConfigurationExtensions.cs
+++ b/Xamarin.Forms.Platform.iOS/Extensions/PlatformConfigurationExtensions.cs
@@ -1,18 +1,11 @@
-#if __MOBILE__
-using CurrentPlatform = Xamarin.Forms.PlatformConfiguration.iOS;
namespace Xamarin.Forms.Platform.iOS
-#else
-using CurrentPlatform = Xamarin.Forms.PlatformConfiguration.macOS;
-
-namespace Xamarin.Forms.Platform.MacOS
-#endif
{
public static class PlatformConfigurationExtensions
{
- public static IPlatformElementConfiguration<CurrentPlatform, T> OnThisPlatform<T>(this T element)
+ public static IPlatformElementConfiguration<PlatformConfiguration.iOS, T> OnThisPlatform<T>(this T element)
where T : Element, IElementConfiguration<T>
{
- return (element).On<CurrentPlatform>();
+ return (element).On<PlatformConfiguration.iOS>();
}
}
} \ No newline at end of file