init(id:content:filter:)
Creates a help guide with an identifier and a view.
Declaration
@MainActor init(id: HomeContentID, @ContentBuilder content: @escaping () -> some View, filter: @escaping HomeAccessoryHelpGuide.SupportsAccessory = { _ in true })Parameters
- id:
The help guide’s identifier.
- content:
A view builder that creates the help guide view.
- filter:
A closure that returns
truefor each accessory that the help guide applies to. By default, the help guide applies to all accessories.