<!--
{
  "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/CombineLatest4",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine10PublishersO0A7Latest4V"
  },
  "title" : "Publishers.CombineLatest4"
}
-->

# Publishers.CombineLatest4

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

```
struct CombineLatest4<A, B, C, D> where A : Publisher, B : Publisher, C : Publisher, D : Publisher, A.Failure == B.Failure, B.Failure == C.Failure, C.Failure == D.Failure
```

## Topics

### Creating a combine latest-four publisher

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

### Declaring supporting types

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

The kind of values published by this publisher.

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

The kind of errors this publisher might publish.

### Inspecting publisher properties

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

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

[`c`](/documentation/Combine/Publishers/CombineLatest4/c)

[`d`](/documentation/Combine/Publishers/CombineLatest4/d)

### Comparing publishers



---

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)