Skip to main content
Language

From App Bundle

PhotoEditor SDK supports adding custom overlays from the app bundle. In this example, we add the custom IMG.LY "Grain" overlay.

Load overlay from bundle#

For the custom overlay we construct an Overlay object providing the local resource URL and a display name for our overlay. In addition we set the initial blend mode to hardLight, an exhaustive list of available blend modes can be found in the API docs.

Add overlay to asset catalog#

In order to add the new overlay to our asset catalog, we first add the default items and then append our overlay to the overlays array.