(OLD) Counting down with a Timer – Flashzilla SwiftUI Tutorial 11/15

preview_player
Показать описание
In this project you'll learn how to work with gestures, integrate timers, add haptics, and more.

Рекомендации по теме
Комментарии
Автор

Questions? Comments? Tweet me @twostraws.

twostraws
Автор

Thank you very much! Awesome tutorial <3

NichtMike
Автор

how do we restart the timer if a particular button is pressed?

_Rohan_
Автор

Hi Paul,


This video was very helpful in building a timer into my project. However, I was running into a slight bug that I thought you may be able to help me with.



I am trying to build an app that allows people to interact with one view while a timer is counting down every second in the navigation view or in a different view. However, when I put this timer view in the navigation bar or in a costume view below the navigation view, the whole screen stops (and inhibits interaction) until the view updates the times. When I put this view into a section header of a list, however, the updating of the timer does not affect the presentation or interaction with other views. I would like to have this timer view appear in the navbar or in a dedicated view outside of the list view. Any ideas would be helpful, and I can share code if that will help.


Thanks!


benaltschuler
welcome to shbcf.ru