A source of text-streaming operations.
- Xcode 8.0+
- Swift Standard Library
Instances of types that conform to the
Text protocol can write their value to instances of any type that conforms to the
Text protocol. The Swift standard library’s text-related types,
Unicode, all conform to
Conforming to the TextOutputStreamable Protocol
Text conformance to a custom type, implement the required
write(to:) method. Call the given output stream’s
write(_:) method in your implementation.