-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Catalyst @availablity checks in RCTPullToRefreshViewComponentView.mm #35673
Conversation
Base commit: 9f78517 |
Base commit: 9f78517 |
PR build artifact for aee7e0a is ready. |
Update: Judging from the original commit, the availability check is probably for Catalyst, not macOS. I'll update this PR to reflect that. Thanks @anandrajeswaran for the catch! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Saadnajmi thank you for spotting this!
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
PR build artifact for 2700551 is ready. |
PR build artifact for 35978a5 is ready. |
@cancan101 anything else I need to do to get this merged? |
@Saadnajmi why are you asking me ;-) ? Not sure I am the right person here to sign off. |
Tagged the wrong person, sorry! Meant to be @cipolleschi |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Nope! I'm trying to land this right now. Sorry, but with the Holidays coming, it is a slower period. |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cipolleschi merged this pull request in 70d9b56. |
….mm (facebook#35673) Summary: Judging from the original [commit](facebook@4c4948b), the availability check is probably for Catalyst, not macOS. That matches the [apple documentation](https://developer.apple.com/documentation/uikit/uiscrollview/2127691-refreshcontrol?language=objc) as well (though we need 13.1, not 13). To avoid needing to introduce a diff in React Native macOS (where we actually compile for macOS and not Mac Catalyst) let's fix the availability check to be more accurate. Changing `macOS` to `MacCatalyst` should be supported as per https://docs.swift.org/swift-book/ReferenceManual/Attributes.html#ID348 (facebook@2c5a966) ## Changelog [IOS] [FIXED] - Fixed Mac Catalyst availability checks Pull Request resolved: facebook#35673 Test Plan: Code compiles Reviewed By: christophpurrer Differential Revision: D42149589 Pulled By: cipolleschi fbshipit-source-id: fbbd31cba44f55215f2c4c0f37aad410d5bcd627
Summary
Judging from the original commit, the availability check is probably for Catalyst, not macOS. That matches the apple documentation as well (though we need 13.1, not 13).
To avoid needing to introduce a diff in React Native macOS (where we actually compile for macOS and not Mac Catalyst) let's fix the availability check to be more accurate. Changing
macOS
toMacCatalyst
should be supported as per https://docs.swift.org/swift-book/ReferenceManual/Attributes.html#ID348Changelog
[IOS] [FIXED] - Fixed Mac Catalyst availability checks
Test Plan
Code compiles