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: Tue Oct 29 2024 10:20:51 GMT-0900 (Hawaii-Aleutian Daylight Time)