<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Combine",
  "identifier" : "/documentation/Combine/Publishers/CombineLatest",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine10PublishersO0A6LatestV"
  },
  "title" : "Publishers.CombineLatest"
}
-->

# Publishers.CombineLatest

A publisher that receives and combines the latest elements from two publishers.

```
struct CombineLatest<A, B> where A : Publisher, B : Publisher, A.Failure == B.Failure
```

## Topics

### Creating a combine latest publisher

[`init(_:_:)`](/documentation/Combine/Publishers/CombineLatest/init(_:_:))

Creates a publisher that receives and combines the latest elements from two publishers.

### Declaring supporting types

[`Publishers.CombineLatest.Output`](/documentation/Combine/Publishers/CombineLatest/Output)

The kind of values published by this publisher.

[`Publishers.CombineLatest.Failure`](/documentation/Combine/Publishers/CombineLatest/Failure)

The kind of errors this publisher might publish.

### Inspecting publisher properties

[`a`](/documentation/Combine/Publishers/CombineLatest/a)

[`b`](/documentation/Combine/Publishers/CombineLatest/b)

### Comparing publishers

[`==(_:_:)`](/documentation/Combine/Publishers/CombineLatest/==(_:_:))

Returns a Boolean value that indicates whether two publishers are equivalent.



---

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)