summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/Extensions/PlatformConfigurationExtensions.cs
blob: f2932e3ab2abe6c2cb2fea97e4707f55cc4e1963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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)
			where T : Element, IElementConfiguration<T>
		{
			return (element).On<CurrentPlatform>();
		}
	}
}