---
title: "endInteraction(_:withViewport:velocity:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scncameracontroller/endinteraction(_:withviewport:velocity:)"
---

# endInteraction(_:withViewport:velocity:)

## Declaration

```swift
func endInteraction(_ location: CGPoint, withViewport viewport: CGSize, velocity: CGPoint)
```
