In the documentation of the enumerateAttribute
method it is said, regarding the stop
argument of the block, that:
The block can set the value to true to stop further processing of the set.
However, inside the block the stop
argument is a let
and I can't set it to true
.
I need to stop enumerating after the first attribute occurrence found. How could I do that?