Repository navigation
Scaffolding 4.0.1 fixes coordinators in modules that use main-actor default isolation.
Route generation
- Fix compilation of
@Scaffoldablecoordinators in a module withMainActordefault isolation, the setting new Xcode app targets use. The generatedDestinations.Metainferred a main-actor isolatedEquatableconformance thatDestinationMetacould not use. - Generate
Destinations.Metaas anonisolatedenum that namesSendable. It staysEquatableandSendable, and is no longer isolated to the main actor.
Documentation and validation
- Removed the redundant
@MainActorfrom coordinator examples in the README, DocC articles, agent guide, and skills. The coordinator protocols are main-actor isolated, so a class that conforms in its declaration is isolated too. - Added a test target built with main-actor default isolation, and the consumer fixtures now compile in both isolation modes.
Migration
- No source changes are required.
@MainActoron a coordinator class or on its conformance still compiles and can be deleted. - Declare the coordinator conformance on the class. A conformance added in an extension does not isolate the class.