---
title: Publishers.MapKeyPath2
framework: combine
role: symbol
role_heading: Structure
path: combine/publishers/mapkeypath2
---

# Publishers.MapKeyPath2

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

## Declaration

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

## Topics

### Declaring supporting types

- [Publishers.MapKeyPath2.Output](combine/publishers/mapkeypath2/output.md)
- [Publishers.MapKeyPath2.Failure](combine/publishers/mapkeypath2/failure.md)

### Inspecting publisher properties

- [upstream](combine/publishers/mapkeypath2/upstream.md)
- [keyPath0](combine/publishers/mapkeypath2/keypath0.md)
- [keyPath1](combine/publishers/mapkeypath2/keypath1.md)

## Relationships

### Conforms To

- [Publisher](combine/publisher.md)

## See Also

### Identifying properties with key paths

- [Publishers.MapKeyPath](combine/publishers/mapkeypath.md)
- [Publishers.MapKeyPath3](combine/publishers/mapkeypath3.md)
