---
title: "init(inputs:defaultInput:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avassetwriterinputgroup/init(inputs:defaultinput:)"
---

# init(inputs:defaultInput:)

Creates a group for the asset writer inputs.

## Declaration

```swift
init(inputs: [AVAssetWriterInput], defaultInput: AVAssetWriterInput?)
```

## Parameters

- `inputs`: The inputs with tracks to arrange into a mutually exclusive group.
- `defaultInput`: The group’s default input.

## Discussion

Discussion When you add an input group to an asset writer, the system sets the default input’s marksOutputTrackAsEnabled property value to true, and the value of the other inputs in the group to false.
