Q:

List a View's Children SwiftUI

Is there a way to list a custom View's children? For example, if I have a structure like Group am I able to list all child Views? Here is an example:
ParentView {
    Child1()
    Child2()
    Child3()
}

Is there a method that I can call on ParentView which will return an array containing Child1, Child2, and Child3?

A:

SwiftUI brings with it an entire paradigm shift of how UI works.
When you create a view like...
ParentView {
    Child1()
    Child2()
}

You are not actually creating views. Likewise there shouldn't be a reason to inspect the state of the views.

With SwiftUI the view structure is a function of the data.

That is, when your data changes, your view hierarchy will update to reflect those changes.
This also means that data flow is one way. From your data... into the views. You do not get data from the views.
Because of this, you should not be inspecting the views like this. You should be inspecting the data that creates the views to find out about the data that way.
UPDATE
Equally, if you want to populate the child views with data from the parent view then you should be using @State object to hold this data and then update the data which will reload the view.
Something like this...
struct MyUpdatingView: View {
    @State private var items: [Int] = []

    var body: some View {
        VStack {
            Button(action: { updateItems() }) {
                Text("New item")
            }

            List(items) { item in
                Text("Item: \(item)")
            }
        }
    }

    func updateItems() {
        items.append(items.count)
    }
}

This will create a view that updates its @State data which then in turn reloads the view with the new data.

