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: story thumbnail not filling full screen while loading

Add .frame(maxWidth: .infinity) to cached and lazy-loaded thumbnail
images in StoryViewer to match the fullsize image layout. Without this,
thumbnails could render at their intrinsic size leaving black gaps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+2
+2
Grain/Views/Stories/StoryViewer.swift
··· 446 446 Image(uiImage: cachedThumb) 447 447 .resizable() 448 448 .aspectRatio(story.aspectRatio.ratio, contentMode: .fit) 449 + .frame(maxWidth: .infinity) 449 450 .clipped() 450 451 } else { 451 452 LazyImage(url: URL(string: story.thumb)) { thumbState in ··· 453 454 thumb 454 455 .resizable() 455 456 .aspectRatio(story.aspectRatio.ratio, contentMode: .fit) 457 + .frame(maxWidth: .infinity) 456 458 .clipped() 457 459 } 458 460 }