---
title: "init(origin:)"
framework: watchkit
role: symbol
role_heading: Initializer
path: "watchkit/wkinterfacevolumecontrol/init(origin:)"
---

# init(origin:)

Creates a volume control for use in SwiftUI.

## Declaration

```swift
init(origin: WKInterfaceVolumeControl.Origin)
```

## Parameters

- `origin`: The source of the audio managed by the volume control. For a list of possible values, see doc://com.apple.watchkit/documentation/WatchKit/WKInterfaceVolumeControl/Origin.

## Discussion

Discussion Use this initializer to create an instance that you can wrap in a WKInterfaceObjectRepresentable view. If you aren’t using SwiftUI, create the control by dragging it from the Object library to your storyboard instead.

## See Also

### SwiftUI

- [WKInterfaceVolumeControl.Origin](watchkit/wkinterfacevolumecontrol/origin.md)
