I think the nonisolated workaround (with MainActor.assumeIsolated) should compile from 5.10. I'm using this now and it seems to be ok.
Layout will eventually (I assume) be updated by the SwiftUI team in one of the next betas so that these workarounds are no longer needed.