<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Combine",
  "identifier" : "/documentation/Combine/Publisher/values-1dm9r",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine9PublisherPAAs5NeverO7FailureRtzrlE6valuesAA05AsyncB0VyxGvp"
  },
  "title" : "values"
}
-->

# values

The elements produced by the publisher, as an asynchronous sequence.

```
var values: AsyncPublisher<Self> { get }
```

## Discussion

This property provides an [`AsyncPublisher`](/documentation/Combine/AsyncPublisher), which allows you to use the Swift `async`-`await` syntax to receive the publisher’s elements. Because [`AsyncPublisher`](/documentation/Combine/AsyncPublisher) conforms to <doc://com.apple.documentation/documentation/Swift/AsyncSequence>, you iterate over its elements with a `for`-`await`-`in` loop, rather than attaching a subscriber.

The following example shows how to use the `values` property to receive elements asynchronously. The example adapts a code snippet from the [`filter(_:)`](/documentation/Combine/Publisher/filter(_:)) operator’s documentation, which filters a sequence to only emit even integers. This example replaces the [`Subscribers.Sink`](/documentation/Combine/Subscribers/Sink) subscriber with a `for`-`await`-`in` loop that iterates over the [`AsyncPublisher`](/documentation/Combine/AsyncPublisher) provided by the `values` property.

```
let numbers: [Int] = [1, 2, 3, 4, 5]
let filtered = numbers.publisher
    .filter { $0 % 2 == 0 }

for await number in filtered.values
{
    print("\(number)", terminator: " ")
}
```

---

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)