iOS client for Grain grain.social
ios photography atproto
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: reset ProfileGalleryFeedView state on reopen

Force fresh view identity per selection with .id(selection.uri) so
@State (scrollAnchor, didExpand) is rebuilt from scratch. Without this,
SwiftUI reused the prior push's state and the view opened to the old
scroll position instead of the newly tapped photo.

authored by

Hima Aramona and committed by
Chad Miller
b15aa9e5 8921576c

+4
+4
Grain/Views/Profile/ProfileView.swift
··· 391 391 initialUri: selection.uri, 392 392 source: selection.source 393 393 ) 394 + // Force a fresh identity per selection so @State (scrollAnchor, 395 + // didExpand) resets — without this, SwiftUI reuses the prior 396 + // push's state and lands on the old scroll position. 397 + .id(selection.uri) 394 398 .navigationTransition(.zoom(sourceID: selection.uri, in: galleryZoomNS)) 395 399 } 396 400 .navigationDestination(item: $selectedProfileDid) { did in