---
title: "init(flags:)"
framework: phase
role: symbol
role_heading: Initializer
path: "phase/phasespatialpipeline/init(flags:)"
---

# init(flags:)

Creates a spatial pipeline with the specified flags.

## Declaration

```swift
init?(flags: PHASESpatialPipeline.Flags)
```

## Parameters

- `flags`: An array of sound-resonance effects to include in the spatial pipeline’s output. The framework adds an entry to the doc://com.apple.phase/documentation/PHASE/PHASESpatialPipeline/entries property for each element that the app includes in this collection.

## Discussion

Discussion This initializer returns nil for a nil flags argument.

## See Also

### Creating a Spatial Pipeline

- [PHASESpatialPipeline.Flags](phase/phasespatialpipeline/flags-swift.struct.md)
