Skip to content

Commit

Permalink
fix: fix PanModalNavigationController longFormHeight, fix panModalPush
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandrRudikov committed Jul 28, 2022
1 parent 6863ca0 commit df357a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PanModal/Controller/PanModalNavigationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ open class PanModalNavController: UINavigationController, PanModalPresentable {

open var longFormHeight: PanModalHeight {
guard let panScrollable = self.presentViewController as? PanModalKeyboardPresentable else {
return .contentHeight(.zero)
return self.presentViewController.longFormHeight
}

let height = panScrollable.contentWithKeyboardHeight
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ public extension PanModalPresentable where Self: UIViewController {
parentVC?.presentPanModal(navController)
}

func panModalPush(parentVC: UIViewController?) {
func panModalPush(parentVC: UIViewController?, animated: Bool = false) {
let navController = parentVC?.navigationController as? PanModalNavController

DispatchQueue.main.async {
navController?.pushViewController(self, animated: false)
navController?.pushViewController(self, animated: animated)
}
}

Expand Down

0 comments on commit df357a3

Please sign in to comment.