Closed sampettersson closed 5 years ago
Great find and work around. Have you investigated if this is an issue just for certain iOS versions or for all support ones?
@mansbernhardt I checked in the simulator, worked as it should in iOS 10, but since iOS 11 it doesn't.
@mansbernhardt What is the status on this PR?
@mansbernhardt fine for merging by me (I don't have merge rights), though the tests are failing for some reason, doesn't seem related tho 🤔
@Iamsamwhoami Do the unit tests pass locally? I can see that they fail on the build server:
ExampleUITests.ExampleUITests
testNavigationPresentationStyle, Lost connection to the application (pid 3093).
ExampleUITests.swift:198
Not sure why, perhaps @nataliq can shed some light?
Hey @Iamsamwhoami @mansbernhardt Sorry for the late response, I missed this mention here!
I restarted the build few times on the CI to check if it's flaky but it fails every time. After running the UI tests on the StylesAndOptions
example app locally I see that the test is failing after these changes (there is a crash actually), so perhaps it is a good catch. If you run that app in the simulator the crash is reproducible every time and looks related to the change: 'Pushing the same view controller instance more than once is not supported
.
@nataliq ah, ok! I’ll check it out.
I will come back to this at some point when I can figure out why the test fails 🙈
I was debugging why the title of a pushed view controller just suddenly pops into it's final position without performing a transition as it should, found out that
setViewControllers(vcs, animated: animated)
was the culprit, so I guess something is flawed inside UIKit.Not so sure about this fix, but it does fix the animations.
Before:
After: