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

# Publishers.TryAllSatisfy

A publisher that publishes a single Boolean value that indicates whether all received elements pass a given error-throwing predicate.

```
struct TryAllSatisfy<Upstream> where Upstream : Publisher
```

## Topics

### Creating a try-all-satisfy publisher

[`init(upstream:predicate:)`](/documentation/Combine/Publishers/TryAllSatisfy/init(upstream:predicate:))

Returns a publisher that publishes a single Boolean value that indicates whether all received elements pass a given error-throwing predicate.

### Declaring supporting types

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

The kind of values published by this publisher.

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

The kind of errors this publisher might publish.

### Inspecting publisher properties

[`upstream`](/documentation/Combine/Publishers/TryAllSatisfy/upstream)

The publisher from which this publisher receives elements.

[`predicate`](/documentation/Combine/Publishers/TryAllSatisfy/predicate)

A closure that evaluates each received element.



---

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)