---
title: TextOutputStreamable
framework: swift
role: symbol
role_heading: Protocol
path: swift/textoutputstreamable
---

# TextOutputStreamable

A source of text-streaming operations.

## Declaration

```swift
protocol TextOutputStreamable
```

## Overview

Overview Instances of types that conform to the TextOutputStreamable protocol can write their value to instances of any type that conforms to the TextOutputStream protocol. The Swift standard library’s text-related types, String, Character, and Unicode.Scalar, all conform to TextOutputStreamable. Conforming to the TextOutputStreamable Protocol To add TextOutputStreamable conformance to a custom type, implement the required write(to:) method. Call the given output stream’s write(_:) method in your implementation.

## Topics

### Instance Methods

- [write(to:)](swift/textoutputstreamable/write(to:).md)

## Relationships

### Inherited By

- [StringProtocol](swift/stringprotocol.md)

### Conforming Types

- [Character](swift/character.md)
- [Double](swift/double.md)
- [Float](swift/float.md)
- [Float16](swift/float16.md)
- [Float80](swift/float80.md)
- [String](swift/string.md)
- [Substring](swift/substring.md)
- [Unicode.Scalar](swift/unicode/scalar.md)

## See Also

### Streams

- [TextOutputStream](swift/textoutputstream.md)
