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 WebView (custom UIViewRepresentable component with WKWebView) within NavigationStack, and by default, scrolling animation of navigation bar (shrinking between large title and inline) is working fine. As soon as I add .introspect modifier on it, the shrinking animation doesn't work anymore.
If I use just a swiftUI ScrollView with ForEach, navbar shrinking works fine in both cases, so it might be something to do with .introspect on custom UIViewRepresentable, but I am not sure.
Video example without .introspect modifier:
Untitled.mp4
Video example with .introspect modifier:
Untitled.2.mp4
Checklist
I have read the README before submitting this report.
hello i may be a little late here, but i believe you just have to remove your
NavigationStack
in this view, i came across the same issue and i fixed this by doing so,
Description
I have a
WebView
(customUIViewRepresentable
component withWKWebView
) withinNavigationStack
, and by default, scrolling animation of navigation bar (shrinking between large title and inline) is working fine. As soon as I add.introspect
modifier on it, the shrinking animation doesn't work anymore.If I use just a swiftUI
ScrollView
withForEach
, navbar shrinking works fine in both cases, so it might be something to do with .introspect on customUIViewRepresentable
, but I am not sure.Video example without
.introspect
modifier:Untitled.mp4
Video example with
.introspect
modifier:Untitled.2.mp4
Checklist
Expected behavior
Navigation bar has default shrinking animation behavior
Actual behavior
Navigation bar is not shrinking/animating at all
Steps to reproduce
Here's simplest example of the issue, you can comment
.introspect
modifier to compare behaviorVersion information
1.1.2
Destination operating system
No response
Xcode version information
No response
Swift Compiler version information
No response
The text was updated successfully, but these errors were encountered: