Skip to content

MVIKit 1.1.0

Latest

Choose a tag to compare

@Khizanag Khizanag released this 18 Nov 00:14

MVIKit now builds with Swift's approachable concurrency features, and effect work stays off the main actor whichever concurrency defaults your app uses.

Changed

  • Approachable concurrency. The package enables NonisolatedNonsendingByDefault and InferIsolatedConformances alongside defaultIsolation(MainActor.self).
  • Effect work is @concurrent. Effect.run takes @concurrent @Sendable work, so it runs off the main actor exactly as in 1.0, even when your module turns on NonisolatedNonsendingByDefault, where a plain async closure would otherwise inherit the caller's actor. State is still reached only through send.

Closure literals passed to Effect.run pick up @concurrent on their own, so call sites don't change. Requires Swift 6.2 or later (Xcode 26 or later), as before.

.package(url: "https://github.com/Khizanag/MVIKit", from: "1.1.0")