---
title: "createController(onExistingFabric:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrdevicecontrollerfactory/createcontroller(onexistingfabric:)"
---

# createController(onExistingFabric:)

## Declaration

```swift
func createController(onExistingFabric startupParams: MTRDeviceControllerStartupParams) throws -> MTRDeviceController
```

## Mentioned in

Onboarding a Matter device
