_Provide a description of what your PR addresses, explaining the expected user experience.
I updated the #if os() usage for Apple's platform to a better solution as #if canImport(Darwin). With this solution, there's no need to add one more os(xrOS).
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
[x] Ran the ./bin/test script and it succeeded
I didn't implement anything new, so no documentation is needed to be updated neither implementing additional tests.
As discussed here this solution may not fit well. Since Swift doesn’t isolate packages based on their dependency tree, this code can actually introduce new bugs.
So I'll close this for now, as I understand more about the problem I was trying to solve.
Summary
_Provide a description of what your PR addresses, explaining the expected user experience.
I updated the
#if os()
usage for Apple's platform to a better solution as#if canImport(Darwin)
. With this solution, there's no need to add one moreos(xrOS)
.Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
./bin/test
script and it succeededI didn't implement anything new, so no documentation is needed to be updated neither implementing additional tests.