---
title: "insert(_:for:)"
framework: coreai
role: symbol
role_heading: Instance Method
path: "coreai/inferencefunction/inputs/insert(_:for:)-2htrp"
---

# insert(_:for:)

Inserts a view of the value as the input with the specified name.

## Declaration

```swift
mutating func insert(_ value: borrowing some InferenceValue.ViewRepresentable & ~Copyable, for inputName: String)
```

## Parameters

- `value`: The value to borrow as an input.
- `inputName`: The name of the input to set.

## See Also

### Adding inputs

- [insert(_:for:)](coreai/inferencefunction/inputs/insert(_:for:)-3eg32.md)
- [insert(_:for:)](coreai/inferencefunction/inputs/insert(_:for:)-5o5oi.md)
