---
title: "init(ecosystemName:homes:)"
framework: mattersupport
role: symbol
role_heading: Initializer
path: "mattersupport/matteradddevicerequest/topology-swift.struct/init(ecosystemname:homes:)"
---

# init(ecosystemName:homes:)

Creates the topology.

## Declaration

```swift
init(ecosystemName: String, homes: [MatterAddDeviceRequest.Home])
```

## Parameters

- `ecosystemName`: The name of your ecosystem. This is a localized string that appears during device setup.
- `homes`: An array of available homes to add the new device into.

## See Also

### Creating the topology

- [init(from:)](mattersupport/matteradddevicerequest/init(from:).md)
