You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a chat like screen within a NavigationCoordinatable with a TextField on the bottom. When I press the TextField the screen should move up. We use IQKeyboardManager for general TextField handling.
With Stinsen the NavigationBar is moved outside the Screen:
If should look like this:
I think I already found the root cause: NavigationViewCoordinatorView sets StackNavigationViewStyle. When I remove this,
it looks as expected.
It tried to set the style directly to DefaultNavigationViewStyle inside the View but thats overruled by the NavigationViewCoordinatorView style.
Is there a proper workaround for this? (I've found none)
Why is StackNavigationViewStyle used explicitly? Can we make that somehow configurable or is StackNavigationViewStyle needed?
Hi! Thanks for the kind words :) Older versions of Stinsen did not use StackNavigation, but what I found was that it made the code really confusing because it needed to account for what I assume are bugs in SwiftUI, which Stack does not have. The bugs are not fixed in latest beta iOS either. Even when having those workarounds it didn't really work well. It was a long time ago but I think it had to do with isActive only worked correcly on the first and last view (master and detail), which makes dismissing coordinators not to work if you for instance run the testbed and push screen/screen/coordinator/screen/screen and try to dismiss the coordinator you pushed (since SwiftUI thinks that screen is not active, even though it very much still exists in the navigation).
Hi 馃槉
I have a chat like screen within a
NavigationCoordinatable
with aTextField
on the bottom. When I press the TextField the screen should move up. We useIQKeyboardManager
for general TextField handling.With Stinsen the NavigationBar is moved outside the Screen:
If should look like this:
I think I already found the root cause:
NavigationViewCoordinatorView
setsStackNavigationViewStyle
. When I remove this,it looks as expected.
It tried to set the style directly to
DefaultNavigationViewStyle
inside the View but thats overruled by the NavigationViewCoordinatorView style.Is there a proper workaround for this? (I've found none)
Why is StackNavigationViewStyle used explicitly? Can we make that somehow configurable or is StackNavigationViewStyle needed?
I modified the example app to show the problem. I've modified the LoginScreen and added IQKeyboardManager.
Stinsen + IQKeyboardManager Issue.zip
Thanks ALOT for your help and ongoing work in this great project 馃 馃槃
The text was updated successfully, but these errors were encountered: