---
title: hasSpaceAvailable
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/stream/event/hasspaceavailable
---

# hasSpaceAvailable

The stream can accept bytes for writing.

## Declaration

```swift
static var hasSpaceAvailable: Stream.Event { get }
```

## Mentioned in

Uploading streams of data

## See Also

### Constants

- [openCompleted](foundation/stream/event/opencompleted.md)
- [hasBytesAvailable](foundation/stream/event/hasbytesavailable.md)
- [errorOccurred](foundation/stream/event/erroroccurred.md)
- [endEncountered](foundation/stream/event/endencountered.md)
