Added support for the change isTranslucent NavigationBar
This commit is contained in:
+13
@@ -31,9 +31,22 @@ class ExampleAddCollectionViewController: StoryboardController {
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
|
||||
navigationController?.navigationBar.isTranslucent = true
|
||||
|
||||
container.move(type: .middle)
|
||||
}
|
||||
|
||||
@IBAction func buttonChangeTranslucent(_ sender: UIButton) {
|
||||
|
||||
guard let translucent = navigationController?.navigationBar.isTranslucent else { return }
|
||||
|
||||
navigationController?.navigationBar.isTranslucent = !translucent
|
||||
|
||||
container.move(type: container.moveType)
|
||||
}
|
||||
|
||||
|
||||
|
||||
func addCollectionView() -> UICollectionView {
|
||||
|
||||
let layout = UICollectionViewFlowLayout()
|
||||
|
||||
Reference in New Issue
Block a user