how to remove "transform" on edit screen imglykit iOS

62 Views Asked by At

using imglyKit library for iOS, how can i remove the "Transform", crop tool from the image editor.

1

There are 1 best solutions below

0
On BEST ANSWER

You can remove any menuItem from default menu items. Try this

    let configuration = buildConfiguration()
    var menuItems = MenuItem.defaultItems(with: configuration)

    menuItems.removeFirst() // Remove first menu item ('Transform')

    // Create a photo edit view controller
    let photoEditViewController = PhotoEditViewController(photo: photo, menuItems: menuItems, configuration: configuration)