<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Dictionary/Values-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:SD6ValuesV"
  },
  "title" : "Dictionary.Values"
}
-->

# Dictionary.Values

A view of a dictionary’s values.

```
@frozen struct Values
```

## Topics

### Instance Properties

[`var count: Int`](/documentation/Swift/Dictionary/Values-swift.struct/count)

The number of values in the dictionary.

[`var endIndex: Dictionary<Key, Value>.Index`](/documentation/Swift/Dictionary/Values-swift.struct/endIndex)

The collection’s “past the end” position—that is, the position one
greater than the last valid subscript argument.

[`var isEmpty: Bool`](/documentation/Swift/Dictionary/Values-swift.struct/isEmpty)

A Boolean value indicating whether the collection is empty.

[`var startIndex: Dictionary<Key, Value>.Index`](/documentation/Swift/Dictionary/Values-swift.struct/startIndex)

The position of the first element in a nonempty collection.

### Instance Methods

[`func formIndex(after: inout Dictionary<Key, Value>.Index)`](/documentation/Swift/Dictionary/Values-swift.struct/formIndex(after:))

Replaces the given index with its successor.

[`func index(after: Dictionary<Key, Value>.Index) -> Dictionary<Key, Value>.Index`](/documentation/Swift/Dictionary/Values-swift.struct/index(after:))

Returns the position immediately after the given index.

[`func swapAt(Dictionary<Key, Value>.Index, Dictionary<Key, Value>.Index)`](/documentation/Swift/Dictionary/Values-swift.struct/swapAt(_:_:))

Exchanges the values at the specified indices of the collection.

### Subscripts

[`subscript(Dictionary<Key, Value>.Index) -> Dictionary<Key, Value>.Values.Element`](/documentation/Swift/Dictionary/Values-swift.struct/subscript(_:))

Accesses the element at the specified position.

### Type Aliases

[`typealias Element`](/documentation/Swift/Dictionary/Values-swift.struct/Element)

A type representing the sequence’s elements.

[`typealias Index`](/documentation/Swift/Dictionary/Values-swift.struct/Index)

A type that represents a position in the collection.

[`typealias Indices`](/documentation/Swift/Dictionary/Values-swift.struct/Indices)

A type that represents the indices that are valid for subscripting the
collection, in ascending order.

[`typealias SubSequence`](/documentation/Swift/Dictionary/Values-swift.struct/SubSequence)

A collection representing a contiguous subrange of this collection’s
elements. The subsequence shares indices with the original collection.

### Default Implementations

[Collection Implementations](/documentation/Swift/Dictionary/Values-swift.struct/Collection-Implementations)

[CustomDebugStringConvertible Implementations](/documentation/Swift/Dictionary/Values-swift.struct/CustomDebugStringConvertible-Implementations)

[CustomStringConvertible Implementations](/documentation/Swift/Dictionary/Values-swift.struct/CustomStringConvertible-Implementations)

[MutableCollection Implementations](/documentation/Swift/Dictionary/Values-swift.struct/MutableCollection-Implementations)

[Sequence Implementations](/documentation/Swift/Dictionary/Values-swift.struct/Sequence-Implementations)

## Relationships

### Conforms To

[`MutableCollection`](/documentation/Swift/MutableCollection)

[`Sendable`](/documentation/Swift/Sendable)

[`Escapable`](/documentation/Swift/Escapable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Copyable`](/documentation/Swift/Copyable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Collection`](/documentation/Swift/Collection)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sequence`](/documentation/Swift/Sequence)

---

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)