Skip to main content
100%

Reset Image Fills

✓ Published0🌍 Public
KKevinGutowski
Last edited Jul 14, 2020
Created on Jul 14, 2020

This example restores the default image assets in Sketch by resetting the global image fills to the application’s built-in preset collection. It loads the preset file from the bundle path, retrieves its image collection and image list, then assigns them to the shared global assets. The code uses the Sketch JavaScript API via `NSBundle`, `NSURL`, and `MSPersistentAssetCollection` to perform the reset, effectively replacing any user-modified fills with the factory defaults.

AI-generated description

Similar vizzes