---
title: Dictionary.Keys
framework: swift
role: symbol
role_heading: Structure
path: swift/dictionary/keys-swift.struct
---

# Dictionary.Keys

A view of a dictionary’s keys.

## Declaration

```swift
@frozen struct Keys
```

## Topics

### Operators

- [==(_:_:)](swift/dictionary/keys-swift.struct/==(_:_:).md)

### Instance Properties

- [count](swift/dictionary/keys-swift.struct/count.md)
- [endIndex](swift/dictionary/keys-swift.struct/endindex.md)
- [isEmpty](swift/dictionary/keys-swift.struct/isempty.md)
- [startIndex](swift/dictionary/keys-swift.struct/startindex.md)

### Instance Methods

- [formIndex(after:)](swift/dictionary/keys-swift.struct/formindex(after:).md)
- [index(after:)](swift/dictionary/keys-swift.struct/index(after:).md)

### Subscripts

- [subscript(_:)](swift/dictionary/keys-swift.struct/subscript(_:).md)

### Type Aliases

- [Dictionary.Keys.Element](swift/dictionary/keys-swift.struct/element.md)
- [Dictionary.Keys.Index](swift/dictionary/keys-swift.struct/index.md)
- [Dictionary.Keys.Indices](swift/dictionary/keys-swift.struct/indices.md)
- [Dictionary.Keys.SubSequence](swift/dictionary/keys-swift.struct/subsequence.md)

### Default Implementations

- [Collection Implementations](swift/dictionary/keys-swift.struct/collection-implementations.md)
- [CustomDebugStringConvertible Implementations](swift/dictionary/keys-swift.struct/customdebugstringconvertible-implementations.md)
- [CustomStringConvertible Implementations](swift/dictionary/keys-swift.struct/customstringconvertible-implementations.md)
- [Equatable Implementations](swift/dictionary/keys-swift.struct/equatable-implementations.md)
- [Hashable Implementations](swift/dictionary/keys-swift.struct/hashable-implementations.md)
- [Sequence Implementations](swift/dictionary/keys-swift.struct/sequence-implementations.md)

## Relationships

### Conforms To

- [Collection](swift/collection.md)
- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Sequence](swift/sequence.md)

## See Also

### Supporting Types

- [Dictionary.Values](swift/dictionary/values-swift.struct.md)
- [Dictionary.Index](swift/dictionary/index.md)
- [Dictionary.Indices](swift/dictionary/indices.md)
- [Dictionary.Iterator](swift/dictionary/iterator.md)
