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: black background in story viewer light mode and clean warnings

Story viewer was showing white safe-area bars in light mode because the
black background lived inside a clipped ZStack. Move it outside the clip
so it extends through the safe areas. Also silence two compiler
warnings: an unused `story` binding in the delete button and main-actor
isolation on the tab bar badge appearance helper.

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

+3 -2
+1 -1
Grain/Views/MainTabView.swift
··· 20 20 let color = UIColor(named: "AccentColor") 21 21 let textAttrs: [NSAttributedString.Key: Any] = [.foregroundColor: UIColor.white] 22 22 let appearance = UITabBarAppearance() 23 - func apply(_ itemAppearance: UITabBarItemAppearance) { 23 + @MainActor func apply(_ itemAppearance: UITabBarItemAppearance) { 24 24 itemAppearance.normal.badgeBackgroundColor = color 25 25 itemAppearance.normal.badgeTextAttributes = textAttrs 26 26 itemAppearance.selected.badgeBackgroundColor = color
+2 -1
Grain/Views/Stories/StoryViewer.swift
··· 134 134 } 135 135 } 136 136 .clipped() 137 + .background(Color.black.ignoresSafeArea()) 137 138 .background( 138 139 DragToDismissInstaller( 139 140 handle: fadeDismissHandle, ··· 463 464 464 465 if author.did == auth.userDID { 465 466 Button { 466 - guard let story else { return } 467 + guard story != nil else { return } 467 468 timer.stop() 468 469 showDeleteConfirm = true 469 470 } label: {