tomkraina,
@tomkraina@mastodon.social avatar

Does it matter where .sheet() is placed in the view hierarchy in SwiftUI? I'm seeing a big regression in scrolling performance of a LazyVGrid (that's presented in the sheet) depending on where I place the .sheet() view modifier. 🤔

luckkerr,
@luckkerr@mastodon.world avatar

@tomkraina yes, depending on where you use it there might be different behavior. Try to avoid placing it inside scrollable items that might disappear. Safest is to place it as high in hierarchy as possible.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • cubers
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • JUstTest
  • osvaldo12
  • normalnudes
  • tester
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • anitta
  • Leos
  • provamag3
  • modclub
  • megavids
  • lostlight
  • All magazines