import SwiftUI enum ImageBorderStyle { static let width: CGFloat = 1.75 } extension EnvironmentValues { @Entry var showsTimelineImageBorders = false } struct ImageBorder: View { @Environment(\.colorScheme) private var colorScheme @Environment(\.showsTimelineImageBorders) private var showsBorder let shape: BorderShape let colors: AvatarRingColors var body: some View { if showsBorder { let color = colorScheme == .dark ? colors.dark : colors.light shape.strokeBorder(Color(uiColor: color.color), lineWidth: ImageBorderStyle.width) .allowsHitTesting(false) .accessibilityHidden(true) } } }