Reply to Get custom EnvironmentValue into PresentationDetent.Context for CustomPresentationDetent implementation. I too have been struggling with this. I've also tried the .environment(\.myEnvironmentValue, ...) after the .sheet(isPresented: ...) modifier. Nothing I've tried has worked. Is this API functional? I'd love to know. UI Frameworks SwiftUI Jan ’24