init(content:filter:)
Creates troubleshooting content with a view.
Declaration
@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
truefor each accessory that the content applies to. By default, the content applies to all accessories.