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

# createController(onNewFabric:)

## Declaration

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

## Mentioned in

Onboarding a Matter device
