Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back Button is not hiding when presenting CropViewController #587

Open
dimpy-iroid opened this issue Jul 5, 2024 · 0 comments
Open

Back Button is not hiding when presenting CropViewController #587

dimpy-iroid opened this issue Jul 5, 2024 · 0 comments
Assignees
Labels

Comments

@dimpy-iroid
Copy link

Describe the bug
I'm presenting CropViewController and Back Button is not getting hidden.

To Reproduce

let cropViewController = CropViewController(image: obj.image ?? UIImage())
                cropViewController.hidesNavigationBar = true
                cropViewController.navigationItem.hidesBackButton = true
                cropViewController.navigationController?.navigationBar.isHidden = true
                    let width = screenWidth/9
                if self.isFromCollection {
                    cropViewController.customAspectRatio = CGSize(width: width*7, height: self.selectedImagesCollectionView.frame.height/1.5)
                } else {
                    cropViewController.customAspectRatio = CGSize(width: width*9, height: width*16)
                }
                    
                    cropViewController.delegate = self
                    cropViewController.resetButtonHidden = true
                    cropViewController.rotateButtonsHidden = true
                    cropViewController.rotateClockwiseButtonHidden = true
                    cropViewController.aspectRatioPickerButtonHidden = true
                    cropViewController.aspectRatioLockEnabled = true
                    cropViewController.aspectRatioLockDimensionSwapEnabled = false
                    cropViewController.resetAspectRatioEnabled = false
                    
                    self.present(cropViewController, animated: true, completion: nil)

Expected behavior
I want to hide the navigation bar when I'm presenting CropViewController.

Screenshots
Simulator Screenshot - iPhone 15 Pro - 2024-07-05 at 17 20 06

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-07-05.at.17.19.39.mp4

iOS Device:

  • Device: [e.g. iPhone 15 Pro Simulator]
  • OS: [e.g. iOS17.4]
  • Library Version [latest]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants