Skip to content

Conversation

@ra1028
Copy link
Owner

@ra1028 ra1028 commented Apr 29, 2023

Pull Request Type

  • Bug fix
  • New feature
  • Refactoring
  • Documentation update
  • Chore

Description

Allows AtomRoot and AtomRelay to be instantiated in MainActor non-isolated context.

Motivation and Context

Currently, the above views are not allowed to be instantiated in MainActor non-isolated context because they have @\MainActor conformance at top-level, but it's sometimes inconvenient depending on an app architecture and how it is designed. That's obvious especially in the case that the app is mixed UIKit and SwiftUI.

Impact on Existing Code

Nothing specific.

@ra1028 ra1028 merged commit 31c19ab into main Apr 29, 2023
@ra1028 ra1028 deleted the remove-unnecessary-MainActors branch April 29, 2023 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants