###Description Repo demonstrates how to remove UIToolbar buttons on QLPreviewController.
- Subclass UIToolbar
- Create UINavigationController using
init(navigationBarClass:toolbarClass:) and supply
UIToolbar subsclass
created in step 1 fortoolbarClass
- Inside of
UIToolbar subsclass
override setItems(_:animated:). To remove all buttons call super with empty arraysuper.setItems([], animated: false)
or potentially you can add only buttons you want to keep.
--
Clone and run example to see it in action.