<!--
{
  "availability" : [
    "iOS: 27.2.0 -",
    "iPadOS: 27.2.0 -",
    "macCatalyst: 27.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeExtensions",
  "identifier" : "/documentation/HomeExtensions/HomeAccessoryTroubleshooting/init(content:filter:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "HomeExtensions"
    ],
    "preciseIdentifier" : "s:14HomeExtensions0A24AccessoryTroubleshootingV7content6filterACxyc_SbSo11HMAccessoryCYbYActc7SwiftUI4ViewRzlufc"
  },
  "title" : "init(content:filter:)"
}
-->

# init(content:filter:)

Creates troubleshooting content with a view.

```
@MainActor init(@ContentBuilder content: @escaping () -> some View, filter: @escaping HomeAccessoryTroubleshooting.SupportsAccessory = { _ in true })
```

## Parameters

`content`

A view builder that creates the troubleshooting view.

`filter`

A closure that returns `true` for each accessory that the content applies to. By default, the content applies to all accessories.

---

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)