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
{{ message }}
This repository was archived by the owner on Oct 1, 2022. It is now read-only.
When running the SwiftUI code below, tap to view the detail screen, then slowly use the iPhone's edge-swipe to go back. You should be able to see that the image extends outside the DetailView. Commenting out marked line in the code fixes the issue.
Observed in the iOS 14.5 emulator and also on an iOS 15 developer beta 1 device, both iPhone 12 Pro.
I don't know whether this is a SwiftUI bug, a NukeUI bug, or perhaps even expected behaviour for either, but it's something I found when migrating from FetchImage to NukeUI in a complex app. Took me a while to realise there was a StackNavigationViewStyle really far up the view hierarchy that was causing issues. Happy to raise an issue or close this as appropriate if it's a known/accepted issue.
import NukeUI
import SwiftUI
structContentView:View{varbody:someView{NavigationView{NavigationLink(destination:DetailView()){Text("Detail")}}
// When this line is commented, the `LazyImage` does not extend outside `DetailView`
.navigationViewStyle(StackNavigationViewStyle())}}structDetailView:View{varbody:someView{LazyImage(source:"https://media.rawg.io/media/games/736/73619bd336c894d6941d926bfd563946.jpg", resizingMode:.aspectFill).frame(height:200)}}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When running the SwiftUI code below, tap to view the detail screen, then slowly use the iPhone's edge-swipe to go back. You should be able to see that the image extends outside the
DetailView. Commenting out marked line in the code fixes the issue.Observed in the iOS 14.5 emulator and also on an iOS 15 developer beta 1 device, both iPhone 12 Pro.
I don't know whether this is a SwiftUI bug, a NukeUI bug, or perhaps even expected behaviour for either, but it's something I found when migrating from
FetchImagetoNukeUIin a complex app. Took me a while to realise there was aStackNavigationViewStylereally far up the view hierarchy that was causing issues. Happy to raise an issue or close this as appropriate if it's a known/accepted issue.Beta Was this translation helpful? Give feedback.
All reactions