Swift: Combine Timer Publisher (2021, Xcode 12, Swift 5) - iOS Development

preview_player
Показать описание
In this video we will learn about the timer publisher in Combine, Xcode, and Swift 5. This publisher allows you to send subscriber events with a timer interval.

#swift #combine #timer

** Like my teaching style? Check out some of my most popular courses!

Join this channel to get access to perks, code, groups, and more:

** Get Skillshare free for 2 Months and learn iOS

** Manage all your investments from app earnings on Betterment!

** Grow your own Youtube tech channel with TubeBuddy:
Рекомендации по теме
Комментарии
Автор

Dude. I’m a learner at swift and spend a lot of time last night looking for something like this that explains how to do a countdown timer.

The method I was seeing until this video dealt with timer.scheduled etc etc.

This seems cleaner.
I am attempting to have a 30 second countdown timer trigger from a button tap. I think you may have just maybe saved me from going mad!
Thanks you.

DarylNotDead
Автор

Clear, Simple, and to the point.
Love this Video.
Thanks for sharing

KairmIhab
Автор

Is there an advantage to using the combine timer vs the normal.timer?

alexthurston
Автор

One thing that seems confusing with many of these videos: are you creating a publisher and then subscribing to it within the same context? What I haven't been able to find yet: How to have some kind of service class that's publishing values, and then there are other instances of a VM class that are subscribing to it. The VM would then publish whatever computed values (like building an array of structs) that would be published to a view for display. Hmmm....

toastrecon
Автор

what software you use for screen capture? Great tutorials but, to be honest, really poor video quality dude ....

maverickchan