Write transparent images at the size you need.
Choose scale and format
Pick 1x to 4x or type a scale from 0.1 to 32, then choose PNG, lossless WebP or AVIF. The line below shows the pixel size, and warns before a side would pass 16384 pixels.
Export
Choose Export, or Command-E, and pick where to save. A notice confirms the file and offers Show in Finder. Export 1x 2x 3x set to a folder writes three files named the way asset catalogs expect.
Inherited colour
When the artwork uses currentColor, choose the colour it renders in with Inherited colour renders as. The code exports keep currentColor.