import SwiftUI // Liquid Glass on iOS 26, thin material below — one modifier so every floating // element falls back the same way. (Split out of the retired ChatView.swift; // used by composers, headers, and chips across the app.) extension View { @ViewBuilder func floatingGlass(in shape: S) -> some View { #if os(iOS) if #available(iOS 26.0, *) { self.glassEffect(.regular, in: shape) } else { scrollSafeGlass(in: shape) } #else scrollSafeGlass(in: shape) #endif } // For glass that floats OVER SCROLLING CONTENT: the liquid-glass lens // refracts and duplicates whatever passes beneath it — over the chat // feed that rendered as ghosted, stacked, compressed bubbles sliding // under the header (the 2026-07-20 hunt; the /bareedges bisect convicted // the glass, not the list). A material blurs its backdrop without // lensing, so surfaces on the scroll path use this on every OS. func scrollSafeGlass(in shape: S) -> some View { self.background(.ultraThinMaterial, in: shape) .overlay(shape.strokeBorder(Color(.separator).opacity(0.4), lineWidth: 0.5)) } }