You dont have to go though all that. Just use the new IosImage.SystemImage and pass a non-existent name in the first parameter, set the ColorGroup parameter to use the colors you want in light and dark mode and pass the black image in as the fallback image. Itll automatically colorize your image based on its alpha using the specified ColorGroup.
seems this would be a good place for an overload like
iOSImage.SystemImage(templateImage as iOSImage, size as Double, weight as iOSImage.SystemImageWeights = SystemImageWeights.Regular, templateColor as ColorGroup = Nil) As iOSImage
rather than passing a bogus parameter for the name
If System.Version >= "13" Then
WorldImageView.Image = iOSImage.SystemImage("nil",0,iosimage.SystemImageWeights.Unspecified,ImageColor,WorldIcon)
Else
WorldImageView.Image = WorldIcon
End If
But on iOS 13, when not in Dark Mode, the image has tiny dark spots in each of the 4 corners. I’ve checked the image, and there’s nothing there, and the image works fine in Dark Mode and in iOS < 13. The ColorGroup is the one Named “Label”.
If System.Version >= "13" Then
WorldImageView.Image = iOSImage.SystemImage("nil",0,iosimage.SystemImageWeights.Unspecified,ImageColor,WorldIcon)
Else
WorldImageView.Image = WorldIcon
End If
But on iOS 13, when not in Dark Mode, the image has tiny dark spots in each of the 4 corners. I’ve checked the image, and there’s nothing there, and the image works fine in Dark Mode and in iOS < 13. The ColorGroup is the one Named “Label”.[/quote]
What does the WorldIcon look like?