---
title: "init(referenceView:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uidynamicanimator/init(referenceview:)"
---

# init(referenceView:)

Initializes a dynamic animator with a specified view as its reference view.

## Declaration

```swift
init(referenceView view: UIView)
```

## Parameters

- `view`: The view for the dynamic animator, called the reference view.

## Return Value

Return Value The initialized dynamic animator, or nil if there was a problem initializing the object.

## Discussion

Discussion When you initialize a dynamic animator with this method, the behaviors (and their dynamic items) that you add to the animator employ the reference view’s coordinate system.

## See Also

### Initializing and managing a dynamic animator

- [init(collectionViewLayout:)](uikit/uidynamicanimator/init(collectionviewlayout:).md)
- [items(in:)](uikit/uidynamicanimator/items(in:).md)
- [addBehavior(_:)](uikit/uidynamicanimator/addbehavior(_:).md)
- [removeBehavior(_:)](uikit/uidynamicanimator/removebehavior(_:).md)
- [removeAllBehaviors()](uikit/uidynamicanimator/removeallbehaviors().md)
