<!--
{
  "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/Subject",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine7SubjectP"
  },
  "title" : "Subject"
}
-->

# Subject

A publisher that exposes a method for outside callers to publish elements.

```
protocol Subject<Output, Failure> : AnyObject, Publisher
```

## Overview

A subject is a publisher that you can use to ”inject” values into a stream, by calling its [`send(_:)`](/documentation/Combine/Subject/send(_:)) method. This can be useful for adapting existing imperative code to the Combine model.

## Topics

### Delivering elements to subscribers

[`send(_:)`](/documentation/Combine/Subject/send(_:))

Sends a value to the subscriber.

[`send()`](/documentation/Combine/Subject/send())

Sends a void value to the subscriber.

### Delivering life cycle events to subscribers

[`send(subscription:)`](/documentation/Combine/Subject/send(subscription:))

Sends a subscription to the subscriber.

[`send(completion:)`](/documentation/Combine/Subject/send(completion:))

Sends a completion signal to the subscriber.



---

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)