Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove UIDevice convenience initialiser #38

Merged
merged 1 commit into from
Oct 12, 2024
Merged

Conversation

bilaalrashid
Copy link
Owner

Related issues

Fixes #36

Summary of changes

  • Remove UIDevice convenience initialiser

Summary of testing

Compiles for macOS and iOS

Steps required for deployment

n/a

Accessing UIDevice.current requires access to the main actor, which
then causes issues when calling other methods.
@bilaalrashid bilaalrashid self-assigned this Oct 12, 2024
@bilaalrashid bilaalrashid merged commit 9e6b9df into main Oct 12, 2024
5 checks passed
@bilaalrashid bilaalrashid deleted the bilaal/fix-mainactor branch October 12, 2024 23:18
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.

Main actor-isolated class property 'current' can not be referenced from a nonisolated context
1 participant