The method, Action.setImage(toImage:withExtension:subdirectory:target:state:) has parameters for target and state but these aren't used when calling the the final setImage(to:target:state:).
Passing in nil for the image also results in unexpected behavior, with url(forResource:withExtension:subdirectory:) returning the first image found rather than resetting the icon like other methods.
The method,
Action.setImage(toImage:withExtension:subdirectory:target:state:)
has parameters fortarget
andstate
but these aren't used when calling the the finalsetImage(to:target:state:)
.Passing in
nil
for the image also results in unexpected behavior, withurl(forResource:withExtension:subdirectory:)
returning the first image found rather than resetting the icon like other methods.