diff options
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/IVisualElementRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/IVisualElementRenderer.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.iOS/IVisualElementRenderer.cs b/Xamarin.Forms.Platform.iOS/IVisualElementRenderer.cs index 9a2bf580..ffb2de29 100644 --- a/Xamarin.Forms.Platform.iOS/IVisualElementRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/IVisualElementRenderer.cs @@ -1,15 +1,24 @@ using System; +#if __MOBILE__ using UIKit; +using NativeView = UIKit.UIView; +using NativeViewController = UIKit.UIViewController; namespace Xamarin.Forms.Platform.iOS +#else +using NativeView = AppKit.NSView; +using NativeViewController = AppKit.NSViewController; + +namespace Xamarin.Forms.Platform.MacOS +#endif { public interface IVisualElementRenderer : IDisposable, IRegisterable { VisualElement Element { get; } - UIView NativeView { get; } + NativeView NativeView { get; } - UIViewController ViewController { get; } + NativeViewController ViewController { get; } event EventHandler<VisualElementChangedEventArgs> ElementChanged; |