Search code examples
iosimglykit

how to remove "transform" on edit screen imglykit iOS


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


Solution

  • 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)