---
title: UUID
framework: foundation
role: symbol
role_heading: Structure
path: foundation/uuid
---

# UUID

A universally unique value to identify types, interfaces, and other items.

## Declaration

```swift
struct UUID
```

## Topics

### Creating UUIDs

- [init()](foundation/uuid/init().md)
- [init(uuid:)](foundation/uuid/init(uuid:).md)
- [init(uuidString:)](foundation/uuid/init(uuidstring:).md)

### Getting UUID Values

- [uuid](foundation/uuid/uuid.md)
- [uuidString](foundation/uuid/uuidstring.md)

### Using Reference Types

- [NSUUID](foundation/nsuuid.md)

### Type Methods

- [random(using:)](foundation/uuid/random(using:).md)

## Relationships

### Conforms To

- [CVAttachmentValueRepresentable](corevideo/cvattachmentvaluerepresentable.md)
- [Comparable](swift/comparable.md)
- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomReflectable](swift/customreflectable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [EntityIdentifierConvertible](appintents/entityidentifierconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [ReferenceConvertible](foundation/referenceconvertible.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
