Skip to content

Commit 9016b22

Browse files
authored
[MetricKit] Add availability attributes to MXMetaData.DictionaryRepresentation. (#17294)
1 parent 6095fb3 commit 9016b22

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/MetricKit/MXMetaData.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if IOS
1+
#if IOS || __MACCATALYST__
22

33
#nullable enable
44

@@ -12,6 +12,15 @@ namespace MetricKit {
1212

1313
public partial class MXMetaData {
1414

15+
#if NET
16+
[SupportedOSPlatform ("ios14.0")]
17+
[SupportedOSPlatform ("maccatalyst14.0")]
18+
[SupportedOSPlatform ("macos12.0")]
19+
[UnsupportedOSPlatform ("tvos")]
20+
#else
21+
[Introduced (PlatformName.iOS, 14, 0)]
22+
[Introduced (PlatformName.MacOSX, 12, 0)]
23+
#endif
1524
public virtual NSDictionary DictionaryRepresentation {
1625
get {
1726
if (SystemVersion.CheckiOS (14,0))

0 commit comments

Comments
 (0)