Skip to main content
PESDK/iOS/Customization

Changing Icons

The PhotoEditor SDK for iOS can easily be tailored to meet your business needs. Learn how to swiftly create the editor your use-case requires.

You can register a block using the PESDK.bundleImageBlock property which gets called once for each icon that is used by the SDK. The block is passed with the name of the image and within the block, you should return your desired icon for the given name. Please note that the icons that you return should have the same dimensions as the default icons to ensure the best user experience. The block is called exactly once for each icon, afterwards the image will be loaded from cache, so make sure to set a block early, ideally before presenting or even initializing the editor. Returning nil will result in the default icon being used.

PESDK.bundleImageBlock = { imageName in
switch imageName {
case "imgly_icon_save":
return UIImage(named: "a_different_image")
default:
return nil
}
}