0

I have a viewController in a UINavigationController that I need to push onto the navigation stack, but instead of the traditional push animation style, it needs to look like the default modal presentation style used in presentViewController. Is there a way to do this?

3254523
  • 3,016
  • 7
  • 29
  • 43
  • 1
    You are going to need to use a custom transition, here is a basic tutorial to get you started https://www.raywenderlich.com/322-custom-uiviewcontroller-transitions-getting-started – JustinM Nov 15 '19 at 18:17
  • @JustinM was hoping to possibly get some code relative to the modal presentation to start me off. any suggestions? – 3254523 Nov 15 '19 at 19:07
  • I don't really have the time but this link has all the code samples https://medium.com/@samstone/create-custom-uinavigationcontroller-transitions-in-ios-1acd6a0b6d25. Then just animate the `toView` up on pushing and `fromView` down on popping. – JustinM Nov 15 '19 at 19:18

0 Answers0