Skip to content

Support Swift Package Traits - #1049

Open
PSchmiedmayer wants to merge 1 commit into
CocoaPods:masterfrom
PSchmiedmayer:support-swift-package-traits
Open

Support Swift Package Traits#1049
PSchmiedmayer wants to merge 1 commit into
CocoaPods:masterfrom
PSchmiedmayer:support-swift-package-traits

Conversation

@PSchmiedmayer

Copy link
Copy Markdown

Current situation & Problem

Xcodeproj treats Swift package traits as unknown attributes and removes them when saving a project.

Release Notes

  • Add trait support to remote and local Swift package references.
  • Add serialization and deserialization coverage.

Testing

  • Verified that saving and reopening a project preserves its enabled traits

Copilot AI lite review requested due to automatic review settings August 8, 2026 07:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

PSchmiedmayer added a commit to SchmiedmayerLab/Plainly-iOS that referenced this pull request Aug 8, 2026
# Restore Managed Navigation Path Configuration

## ♻️ Current situation & Problem

The managed-navigation state fix moved initial path configuration
directly into the initializer, despite the existing Spezi workaround
that keeps the direct configuration call in a helper to avoid repeated
view updates with an external path. CI archives also need to preserve
the Textual Swift package trait until [XcodeProj
#1049](CocoaPods/Xcodeproj#1049) adds native
support.

## ⚙️ Release Notes

- Restore the dedicated Spezi path-configuration helper and its
explanatory comment.
- Retain explicit internal State initialization so the path is never
accessed before SwiftUI installs it.
- Pin Plainly to the corrected Spezi revision.
- Preserve the Textual package trait during Fastlane deployments.

## ✅ Testing

- Built the affected SpeziViews target successfully.
- Passed the SpineAI questionnaire fresh-install and relaunch UI
regression on iPhone 17 Pro with iOS 26.5.
- Verified the questionnaire content appeared on both launches without a
blank screen.
- Validated the deployment trait handling from Fastlane’s working
directory.
- `git diff --check`

### Code of Conduct & Contributing Guidelines

By creating and submitting this pull request, you agree to follow our
[Code of
Conduct](https://github.com/SchmiedmayerLab/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/SchmiedmayerLab/.github/blob/main/CONTRIBUTING.md):

- [x] I agree to follow the [Code of
Conduct](https://github.com/SchmiedmayerLab/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/SchmiedmayerLab/.github/blob/main/CONTRIBUTING.md).
@PSchmiedmayer

Copy link
Copy Markdown
Author

@amorde Let us know if this is of interest to be merged; we have now encountered this in two projects as Traits become more used and we started to adopt them as well. Let me know if you have any feedback; thanks for maintaining the package!

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