Skip to content

Commit

Permalink
Motion disabled by default for NavigationController to avoid unbalanc…
Browse files Browse the repository at this point in the history
…ed calls to view lifecycle when presenting a NavigationController modally.
  • Loading branch information
Daniel Dahan committed Jan 7, 2018
1 parent 45325e0 commit fb2a453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## 2.13.3

* [issue-1015](https://github.com/CosmicMind/Material/issues/1015): Fixed regression where view lifecycle functions were not being called.
* Motion disabled by default for NavigationController to avoid unbalanced calls to view lifecycle when presenting a NavigationController modally.
* Updated to [Motion 1.3.3](https://github.com/CosmicMind/Motion/releases/tag/1.3.3).

## 2.13.2

Expand Down
1 change: 0 additions & 1 deletion Sources/iOS/NavigationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ open class NavigationController: UINavigationController {
when subclassing.
*/
open func prepare() {
isMotionEnabled = true
navigationBar.frame.size.width = view.bounds.width
navigationBar.heightPreset = .normal

Expand Down

0 comments on commit fb2a453

Please sign in to comment.