summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/ViewInitializedEventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/ViewInitializedEventArgs.cs')
-rw-r--r--Xamarin.Forms.Platform.iOS/ViewInitializedEventArgs.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.iOS/ViewInitializedEventArgs.cs b/Xamarin.Forms.Platform.iOS/ViewInitializedEventArgs.cs
index 7304116..9ee0da8 100644
--- a/Xamarin.Forms.Platform.iOS/ViewInitializedEventArgs.cs
+++ b/Xamarin.Forms.Platform.iOS/ViewInitializedEventArgs.cs
@@ -1,11 +1,16 @@
using System;
-using UIKit;
+#if __MOBILE__
+using TNativeView = UIKit.UIView;
+#else
+using TNativeView = AppKit.NSView;
+
+#endif
namespace Xamarin.Forms
{
public class ViewInitializedEventArgs : EventArgs
{
- public UIView NativeView { get; internal set; }
+ public TNativeView NativeView { get; internal set; }
public VisualElement View { get; internal set; }
}