Skip to content

Commit c08c612

Browse files
authored
Update OperatingSystem.IsIOS() docs to mention MacCatalyst (#7781)
IsIOS() also returns true on MacCatalyst since dotnet/runtime@14854e2, update the docs to clarify that.
1 parent 87d950f commit c08c612

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xml/System/OperatingSystem.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@
449449
</ReturnValue>
450450
<Parameters />
451451
<Docs>
452-
<summary>Indicates whether the current application is running on iOS.</summary>
452+
<summary>Indicates whether the current application is running on iOS or MacCatalyst.</summary>
453453
<returns>
454-
<see langword="true" /> if the current application is running on iOS; <see langword="false" /> otherwise.</returns>
454+
<see langword="true" /> if the current application is running on iOS or MacCatalyst; <see langword="false" /> otherwise.</returns>
455455
<remarks>To be added.</remarks>
456456
</Docs>
457457
</Member>
@@ -491,9 +491,9 @@
491491
<param name="major">The major release number.</param>
492492
<param name="minor">The minor release number.</param>
493493
<param name="build">The build release number.</param>
494-
<summary>Checks if the iOS version (returned by <c>libobjc.get_operatingSystemVersion</c>) is greater than or equal to the specified version. This method can be used to guard APIs that were added in the specified iOS version.</summary>
494+
<summary>Checks if the iOS/MacCatalyst version (returned by <c>libobjc.get_operatingSystemVersion</c>) is greater than or equal to the specified version. This method can be used to guard APIs that were added in the specified iOS version.</summary>
495495
<returns>
496-
<see langword="true" /> if the current application is running on an iOS version that is at least what was specified in the parameters; <see langword="false" /> otherwise.</returns>
496+
<see langword="true" /> if the current application is running on an iOS/MacCatalyst version that is at least what was specified in the parameters; <see langword="false" /> otherwise.</returns>
497497
<remarks>To be added.</remarks>
498498
</Docs>
499499
</Member>

0 commit comments

Comments
 (0)