From 54f6712c150dab19368f5692aad3f69c3d4fa5d6 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Fri, 28 Jan 2022 17:30:58 +0100 Subject: [PATCH] [CoreSpotlight] Adopt XAMCORE_4_0 changes in .NET. (#13942) --- src/CoreSpotlight/CSCompat.cs | 2 +- src/corespotlight.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/CoreSpotlight/CSCompat.cs b/src/CoreSpotlight/CSCompat.cs index 62564b6dba..825c3f2c3e 100644 --- a/src/CoreSpotlight/CSCompat.cs +++ b/src/CoreSpotlight/CSCompat.cs @@ -1,6 +1,6 @@ // Compatibility stubs -#if !XAMCORE_4_0 && IOS +#if !NET && IOS using System; diff --git a/src/corespotlight.cs b/src/corespotlight.cs index 405ac3cbc8..3b9364c04a 100644 --- a/src/corespotlight.cs +++ b/src/corespotlight.cs @@ -228,9 +228,7 @@ namespace CoreSpotlight { bool MultiValued { [Bind ("isMultiValued")] get; } } -#if XAMCORE_4_0 - [NoTV] -#endif + [TV (9,0)] // Headers don't say, documentation says no, however everything works just fine in Xcode (and no warnings). [iOS (9,0)] [Mac (10,13)] [EditorBrowsable (EditorBrowsableState.Advanced)]