HeroTransitions / HeroTransitions/Hero

how to assign uiview id to navigationbar id

Open
#685 0 comments 0 reactions 0 assignees View on GitHub
discussion question
Dominant language
Swift
Stars
22.5k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

## 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)

}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.