mwaterfall / MWPhotoBrowser

A simple iOS photo and video browser with grid view, captions and selections.
MIT License
8.75k stars 2.71k forks source link

Navigation Bar and Bottom Bar Blocks the Image #610

Open yigitserin opened 7 years ago

yigitserin commented 7 years ago

Hey there, when you are opening longer images, the navigation bar and bottom bar blocks the image content. Is there any way to fix this? Here is how it looks and the source code:

Image

let browser = MWPhotoBrowser(delegate: self)
        browser.displayActionButton = true // Show action button to allow sharing, copying, etc (defaults to YES)
        browser.displayNavArrows = true // Whether to display left and right nav arrows on toolbar (defaults to NO)
        browser.displaySelectionButtons = false // Whether selection buttons are shown on each image (defaults to NO)
        browser.zoomPhotosToFill = false // Images that almost fill the screen will be initially zoomed to fill (defaults to YES)
        browser.alwaysShowControls = true // Allows to control whether the bars and controls are always visible or whether they fade away to show the photo full (defaults to NO)
        browser.enableGrid = true // Whether to allow the viewing of all the photo thumbnails on a grid (defaults to YES)
        browser.startOnGrid = true // Whether to start on the grid of thumbnails instead of the first photo (defaults to NO)
let mygalleryVC = MyGalleryVC(rootViewController: browser)
        mygalleryVC.modalTransitionStyle = .CrossDissolve
        self.presentViewController(mygalleryVC, animated: true, completion: nil)
import UIKit
import MWPhotoBrowser

class MyGalleryVC: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()

    }
}