Skip to content

Fix issue with trait enablement#894

Open
xbhatnag wants to merge 3 commits intoswift-server:ff-new-http-client-apifrom
xbhatnag:fix-trait
Open

Fix issue with trait enablement#894
xbhatnag wants to merge 3 commits intoswift-server:ff-new-http-client-apifrom
xbhatnag:fix-trait

Conversation

@xbhatnag
Copy link

In Swift code, traits are enabled by #if <trait name>. The $ prefix is not required on the name and actually causes the trait to not work. See https://docs.swift.org/swiftpm/documentation/packagemanagerdocs/packagetraits/#Use-traits-in-your-code

In Swift code, traits are enabled by `#if <trait name>`. The `$` prefix is not required on the name and actually causes the trait to not work. See https://docs.swift.org/swiftpm/documentation/packagemanagerdocs/packagetraits/#Use-traits-in-your-code
@fabianfett fabianfett added the semver/none No version bump required. label Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants