Created
July 8, 2025 11:25
-
-
Save jacobsapps/8d4da6e1785a9244d97cc908222de702 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@MainActor | |
private func streamNotificationCount() async { | |
for await notificationsCount in combineLatest( | |
repo.chatNotificationsSequence, | |
repo.friendNotificationsSequence | |
).map({ | |
$0.0.count + $0.1.count | |
}) { | |
self.notificationCount = notificationsCount | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment