<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MatterSupport",
  "identifier" : "/documentation/MatterSupport/MatterAddDeviceRequest/Topology-swift.struct/init(ecosystemName:homes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "MatterSupport"
    ],
    "preciseIdentifier" : "s:13MatterSupport0A16AddDeviceRequestV8TopologyV13ecosystemName5homesAESS_SayAC4HomeVGtcfc"
  },
  "title" : "init(ecosystemName:homes:)"
}
-->

# init(ecosystemName:homes:)

Creates the topology.

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)