<!--
{
  "availability" : [
    "Xcode: 16.0.0 -",
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "swift: 6.0.0 -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Testing",
  "identifier" : "/documentation/Testing/Trait/tags(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Swift Testing",
      "Testing"
    ],
    "preciseIdentifier" : "s:7Testing5TraitPA2A3TagV4ListVRszrlE4tagsyAgEd_tFZ"
  },
  "title" : "tags(_:)"
}
-->

# tags(_:)

Construct a list of tags to apply to a test.

```
static func tags(_ tags: Tag...) -> Self
```

## Parameters

`tags`

The list of tags to apply to the test.

## Return Value

An instance of [`Tag.List`](/documentation/Testing/Tag/List) containing the specified tags.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)