Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

func needs to have @objc dynamic to work (iOS11, Xcode9 beta4) #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions ETNavBarTransparent/ETNavBarTransparent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extension UINavigationController {
}
}

func et_updateInteractiveTransition(_ percentComplete: CGFloat) {
@objc dynamic func et_updateInteractiveTransition(_ percentComplete: CGFloat) {
guard let topViewController = topViewController, let coordinator = topViewController.transitionCoordinator else {
et_updateInteractiveTransition(percentComplete)
return
Expand Down Expand Up @@ -113,13 +113,13 @@ extension UINavigationController {
return UIColor(red: nowRed, green: nowGreen, blue: nowBlue, alpha: nowAlpha)
}

func et_popToViewController(_ viewController: UIViewController, animated: Bool) -> [UIViewController]? {
@objc dynamic func et_popToViewController(_ viewController: UIViewController, animated: Bool) -> [UIViewController]? {
setNeedsNavigationBackground(alpha: viewController.navBarBgAlpha)
navigationBar.tintColor = viewController.navBarTintColor
return et_popToViewController(viewController, animated: animated)
}

func et_popToRootViewControllerAnimated(_ animated: Bool) -> [UIViewController]? {
@objc dynamic func et_popToRootViewControllerAnimated(_ animated: Bool) -> [UIViewController]? {
setNeedsNavigationBackground(alpha: viewControllers.first?.navBarBgAlpha ?? 0)
navigationBar.tintColor = viewControllers.first?.navBarTintColor
return et_popToRootViewControllerAnimated(animated)
Expand Down