Repository navigation
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
NonisolatedNonsendingByDefaultandInferIsolatedConformancesalongsidedefaultIsolation(MainActor.self). - Effect work is
@concurrent.Effect.runtakes@concurrent @Sendablework, so it runs off the main actor exactly as in 1.0, even when your module turns onNonisolatedNonsendingByDefault, where a plainasyncclosure would otherwise inherit the caller's actor. State is still reached only throughsend.
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")