Ensure status bar is hidden in image editor subviews.

pull/2/head
Matthew Chen 6 years ago
parent 607adbf261
commit 4ea608cd45

@ -114,6 +114,11 @@ public class ImageEditorBrushViewController: OWSViewController {
paletteView.isHidden = hasStroke
}
@objc
public override var prefersStatusBarHidden: Bool {
return true
}
// MARK: - Actions
@objc func didTapUndo(sender: UIButton) {

@ -237,6 +237,11 @@ class ImageEditorCropViewController: OWSViewController {
: "image_editor_crop_unlock"))
}
@objc
public override var prefersStatusBarHidden: Bool {
return true
}
private static let desiredCornerSize: CGFloat = 24
private static let minCropSize: CGFloat = desiredCornerSize * 2
private var cornerSize = CGSize.zero

@ -234,6 +234,11 @@ public class ImageEditorTextViewController: OWSViewController, VAlignTextViewDel
updateNavigationBar(navigationBarItems: navigationBarItems)
}
@objc
public override var prefersStatusBarHidden: Bool {
return true
}
// MARK: - Pinch Gesture
private var pinchFontStart: UIFont?

Loading…
Cancel
Save