Skip to content

Conversation

@sofiaromorales
Copy link
Contributor

@sofiaromorales sofiaromorales commented Apr 24, 2025

Bug/issue #, if applicable: rdar://146774862

Summary

This PR makes a small tweak to the default availability logic so it uses the symbol availability item platform name instead of the symbol graph platform name to calculate the corresponding default introduced version from the default availability.

Dependencies

N/A

Testing

Availability.docc.zip

Steps:

  1. Preview the attached catalog.
  2. Assert that the symbol Foo shows the visionOS platform as deprecated without version information.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran the ./bin/test script and it succeeded
  • Updated documentation if necessary

…nformation.

This change makes a small tweak to the default availability logic so it uses the
symbol availability item platform name instead of the symbol graph platform name
to calculate the corresponding default introduced version from the default
availability.

rdar://146774862
@sofiaromorales sofiaromorales requested a review from anferbui April 24, 2025 14:13
@sofiaromorales sofiaromorales marked this pull request as ready for review April 24, 2025 14:13
Copy link
Contributor

@anferbui anferbui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for looking into this 🎉

@sofiaromorales
Copy link
Contributor Author

@swift-ci please test

@sofiaromorales sofiaromorales merged commit 94eaaa3 into swiftlang:main May 2, 2025
2 checks passed
sofiaromorales added a commit to sofiaromorales/swift-docc that referenced this pull request May 2, 2025
…nformation. (swiftlang#1208)

Use availability item platform name to compute default availability information.

This change makes a small tweak to the default availability logic so it uses the
symbol availability item platform name instead of the symbol graph platform name
to calculate the corresponding default introduced version from the default
availability.

rdar://146774862
sofiaromorales added a commit that referenced this pull request May 2, 2025
…nformation. (#1208) (#1211)

Use availability item platform name to compute default availability information.

This change makes a small tweak to the default availability logic so it uses the
symbol availability item platform name instead of the symbol graph platform name
to calculate the corresponding default introduced version from the default
availability.

rdar://146774862
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants