Skip to content

Commit

Permalink
[ADD] UINavigationController Extension 추가 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeseSR committed Jun 16, 2022
1 parent a09d38a commit 0a94646
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ extension UINavigationController {

}

func popToViewController(ofClass: AnyClass, animated: Bool = true) {
if let vc = viewControllers.last(where: { $0.isKind(of: ofClass) }) {
popToViewController(vc, animated: animated)
}
}

}

extension UINavigationBarAppearance {
Expand Down

0 comments on commit 0a94646

Please sign in to comment.