Skip to content

Commit d50745c

Browse files
authored
Lower predefined color tags to experimental SPI. (#399)
This PR lowers `Tag.red`, `Tag.orange`, etc. to experimental SPI pending a formal review of tag colors as a general feature. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent c637394 commit d50745c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Sources/Testing/Testing.docc/AddingTags.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ struct Food {
105105
}
106106
```
107107

108+
<!--
109+
HIDDEN: tag colors are experimental SPI.
110+
108111
## Built-in tags
109112
110113
The testing library predefines the following symbolic tags that can be used in
@@ -155,3 +158,4 @@ be set to:
155158
".legallyRequired": "#66FFCC"
156159
}
157160
```
161+
-->

Sources/Testing/Traits/Tags/Tag+Predefined.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// MARK: Primary colors
1212

13+
@_spi(Experimental)
1314
extension Tag {
1415
/// A tag representing the color red.
1516
public static var red: Self {

Tests/TestingTests/MiscellaneousTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
//
1010

11-
@testable @_spi(ForToolsIntegrationOnly) import Testing
11+
@testable @_spi(Experimental) @_spi(ForToolsIntegrationOnly) import Testing
1212

1313
@Test(/* name unspecified */ .hidden)
1414
@Sendable func freeSyncFunction() {}

0 commit comments

Comments
 (0)