Oscar Falmer
Oscar Falmer

Reputation: 1801

Swift - enumerateChildNodesWithName with name containing a string

I would like to use enumerateChildNodesWithName but enumerateChildNodesWithName containing another string, is there any way to do that?

Upvotes: 0

Views: 375

Answers (1)

Oscar Falmer
Oscar Falmer

Reputation: 1801

I found the solution:

enumerateChildNodesWithName("*") { node, _ in
if node.name == "string" {
    // do anything
}}

Upvotes: 1

Related Questions