I have a UIButton in my Swift/iOS app with width of 20 and height of 20 with an image inside.
I have an SVG icon that I'd like to use for the image in the UIButton. When I convert this SVG into a PNG, what resolution should the 1x, 2x, and 3x be?
Right now I'm creating a 30x30, 60x60 and 90x90 PNG files but it is mostly guesswork.
Should I instead use, say, 100x100, 200x200 and 300x300 PNG files?
Would these larger resolutions look better, but perhaps they take more time to load?
Also, in the UIButton, what is the correct content mode to set? Scale to fill or aspect fill?