Replies: 2 comments
-
To add, it could perhaps be helpful for all the stack support to reside in a protocol that any custom navigation controller can conform to, to make it very easy for us to either use the TCA-provided navigation controller or use our own custom navigation controller with that functionality. |
Beta Was this translation helpful? Give feedback.
-
Hi @notcome, thanks for bringing this up. This is definitely something we should support. Probably the easiest way to do it is for us to have our own |
Beta Was this translation helpful? Give feedback.
-
I came across the
ui-nav-stack
branch in a discussion post and found it to be working perfectly. However, I noticed thatStackNavigationController
is its ownUINavigationControllerDelegate
. As mentioned in your comment, this is done to sync UIKit view state back to TCA state.The reason I cannot switch to NavigationStack is that I need to be able to interact with the lifecycle of UINavigationController for custom and interruptible transitions. Therefore, we need to be able to set our own delegate for UINavigationController, which is at odds with the current implementation. While we could manually hijack the delegate to forward the implementation, it would require us to closely monitor your implementation. Since this branch is still in preview, I just want to make you aware of my use case. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions