---
title: "init(from:to:mode:timing:isAdditive:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/fromtobyaction/init(from:to:mode:timing:isadditive:)"
---

# init(from:to:mode:timing:isAdditive:)

Creates a new action that interpolates towards a specified final transform.

## Declaration

```swift
init(from: Value? = nil, to: Value, mode: FromToByAction<Value>.TransformMode = .default, timing: AnimationTimingFunction = .linear, isAdditive: Bool = false)
```

## Parameters

- `from`: Transform set at the start of the animation, or nil to use the default source.
- `to`: Transform set at the end of the animation.
- `mode`: Determines what space the transforms are relative to.
- `timing`: Controls the progress of the animation.
- `isAdditive`: Specifies whether you can additively blend the output from the action’s animation.

## Discussion

Discussion defaultSource → to or defaultSource → to
