Skip to content

Can ErasedViewGraphNode be a struct instead? #332

@stackotter

Description

@stackotter

From ForEach.swift;

// TODO: This pattern of erasing by wrapping in a temporary class seems
//   inefficient. Could ErasedViewGraphNode maybe be a struct instead?
var erasedNodes: [ErasedViewGraphNode] {
    nodes.map(ErasedViewGraphNode.init(wrapping:))
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions