---
title: id
framework: tipkit
role: symbol
role_heading: Instance Property
path: tipkit/tip/id
---

# id

The tip’s unique identifier.

## Declaration

```swift
var id: String { get }
```

## Overview

Overview note: More information on custom tip identifiers can be found in WWDC24 Session 10070: Customize feature discovery with TipKit. By default the type name of the Tip conforming struct will be used as the tip’s id. Specifying a custom id allows you to create reusable tips based on their content. struct NewTrailTip: Tip {     let newTrail: Trail          var id: String {         "NewTrailTip-\(newTrail.id)"     } }      struct TrailList: View {     let newTrail: Trail          var body: some View {         // Creates a different tip for each new trail.         let newTrailTip = NewTrailTip(newTrail)         TipView(newTrailTip)     } }

## See Also

### Setting tip content

- [title](tipkit/tip/title.md)
- [message](tipkit/tip/message.md)
- [image](tipkit/tip/image.md)
