Skip to content

4.0.1

Latest

Choose a tag to compare

@dotaeva dotaeva released this 04 Dec 22:18

Scaffolding 4.0.1 fixes coordinators in modules that use main-actor default isolation.

Route generation

  • Fix compilation of @Scaffoldable coordinators in a module with MainActor default isolation, the setting new Xcode app targets use. The generated Destinations.Meta inferred a main-actor isolated Equatable conformance that DestinationMeta could not use.
  • Generate Destinations.Meta as a nonisolated enum that names Sendable. It stays Equatable and Sendable, and is no longer isolated to the main actor.

Documentation and validation

  • Removed the redundant @MainActor from 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. @MainActor on 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.

Full changelog