0

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

manuelBetancurt
  • 15,428
  • 33
  • 118
  • 216

1 Answers1

1

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)
RajeshKumar R
  • 15,445
  • 2
  • 38
  • 70