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

feat: add NotificationCenterAsyncSequence #37

Merged
merged 3 commits into from
Aug 6, 2022

Conversation

reddavis
Copy link
Owner

@reddavis reddavis commented Aug 6, 2022

let sequence = NotificationCenter.default.sequence(for: UIDevice.orientationDidChangeNotification)

for await element in sequence {
    print(element)
}

@reddavis reddavis enabled auto-merge (squash) August 6, 2022 15:09
@reddavis reddavis merged commit f7b6c72 into main Aug 6, 2022
@reddavis reddavis deleted the feature/notification-center branch August 6, 2022 15:12
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.

None yet

1 participant