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

# Publishers.MapKeyPath2

A publisher that publishes the values of two key paths as a tuple.

```
struct MapKeyPath2<Upstream, Output0, Output1> where Upstream : Publisher
```

## Topics

### Declaring supporting types

[`typealias Output`](/documentation/Combine/Publishers/MapKeyPath2/Output)

The kind of values published by this publisher.

[`typealias Failure`](/documentation/Combine/Publishers/MapKeyPath2/Failure)

The kind of errors this publisher might publish.

### Inspecting publisher properties

[`let upstream: Upstream`](/documentation/Combine/Publishers/MapKeyPath2/upstream)

The publisher from which this publisher receives elements.

[`let keyPath0: KeyPath<Upstream.Output, Output0>`](/documentation/Combine/Publishers/MapKeyPath2/keyPath0)

The key path of a property to publish.

[`let keyPath1: KeyPath<Upstream.Output, Output1>`](/documentation/Combine/Publishers/MapKeyPath2/keyPath1)

The key path of a second property to publish.

## Relationships

### Conforms To

[`Publisher`](/documentation/Combine/Publisher)

---

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)