如何在编辑屏幕 imglykit iOS 上删除 "transform"
how to remove "transform" on edit screen imglykit iOS
为 iOS 使用 imglyKit 库,我如何从图像编辑器中删除 "Transform"、裁剪工具。
您可以从默认菜单项中删除任何 menuItem。试试这个
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)
为 iOS 使用 imglyKit 库,我如何从图像编辑器中删除 "Transform"、裁剪工具。
您可以从默认菜单项中删除任何 menuItem。试试这个
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)