Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.09 KB

File metadata and controls

19 lines (14 loc) · 1.09 KB

PreviewControllerHideBottomButtons

###Description Repo demonstrates how to remove UIToolbar buttons on QLPreviewController.


###Steps:

  1. Subclass UIToolbar
  2. Create UINavigationController using init(navigationBarClass:toolbarClass:) and supply UIToolbar subsclass created in step 1 for toolbarClass
  3. Inside of UIToolbar subsclass override setItems(_:animated:). To remove all buttons call super with empty array super.setItems([], animated: false) or potentially you can add only buttons you want to keep.

--


Clone and run example to see it in action.