SwiftinitSwiftUISwiftUI.DocumentGroup

init

SwiftUI.DocumentGroup< where A: SwiftUI.FileDocument>.init(newDocument: @autoclosure () -> A, editor: (SwiftUI.FileDocumentConfiguration<A>) -> B) -> SwiftUI.DocumentGroup<A, B>

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

generic{}

AB

param{}

  1. 0newDocument:
    function@autoclosure () -> Aescapingautoclosure
    • returnsgenericParameterA
  2. 1editor:
    function(SwiftUI.FileDocumentConfiguration<A>) -> Bescaping

result{}

  • arggenericParameterA
  • arggenericParameterB