Need to check a small SwiftUI screen with draft send options. After a recent change, the behavior started diverging from what is expected: the user toggles and the title sometimes do not match the current draft, especially if the screen is opened again for another record within the same parent view lifecycle.
DraftShareOptions and displays:
includeComments toggle;compressImages toggle.Apply is pressed, a snapshot with the current toggle values and the same draftID that was passed to the screen must be sent out.ShareDemoHostView as the root screen.Quarterly plan.Cancel button.Release notes.Apply without making any additional changes.sheet at that moment.Apply must return data for the current draft, not a snapshot remembered when the screen was first created.Swift 6MainActorSwiftUI, no third-party packagesShareDemoHostView is used as a demo screen and manually switches input models for reproductionUse line comments to explain the problem, its impact, the fix and how to test it.