Hero icon indicating copy to clipboard operation
Hero copied to clipboard

how to assign uiview id to navigationbar id

Open JayamuruganG opened this issue 4 years ago • 0 comments

What did you do?

i want hidden my uiview to uinavigationBar

What did you expect to happen?

i cant assign uiview to uinavigationbar

What happened instead?

General Information

  • Hero Version:1.5.0

  • iOS Version(s):13.5

  • Swift Version: 4.2

  • Devices/Simulators: simulator

  • Reproducible in Examples? (Yes/No):

Demo Project

@IBAction func showAction(_ sender: UIButton){

    guard let nextVc = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(identifier: "ViewController1") as? ViewController1 else {
                return
            }
            navigationController?.hero.isEnabled = true
            nextVc.hero.isEnabled = true
            self.hero.isEnabled = true

    navigationController?.heroNavigationAnimationType = .fade
            _ = nextVc.view
    self.searchView.heroID = "SearchView"
    self.searchView.hero.modifiers = [.translate(y:-100)]
    nextVc.navigationController?.navigationBar.heroID = "SearchView"
    navigationController?.pushViewController(nextVc, animated: true)
    
}

JayamuruganG avatar Oct 16 '20 14:10 JayamuruganG