DynamicTransition

master

dasdom/DynamicTransition

DynamicTransition

Add to project

Add the Swift Package in Xcode.

Snap

class ViewController: UIViewController {

  let navigationControllerDelegate = DynamicsNavigationControllerDelegate()
  
  override func viewDidLoad() {
    super.viewDidLoad()
        
    navigationControllerDelegate.type = .gravity
    navigationController?.delegate = navigationControllerDelegate
  }
}

Gravity

class ViewController: UIViewController {

  let navigationControllerDelegate = DynamicsNavigationControllerDelegate()
  
  override func viewDidLoad() {
    super.viewDidLoad()
        
    navigationControllerDelegate.type = .snap
    navigationController?.delegate = navigationControllerDelegate
  }
}

Author

Dominik Hauser Twitter: @dasdom

Licence

MIT

Description

  • Swift Tools 5.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Nov 10 2022 14:22:43 GMT-0500 (GMT-05:00)