Observe if my value reached zero in Swift?

前端 未结 0 1431
小鲜肉
小鲜肉 2021-01-04 02:52

Hey I am working on a timer inside of SwiftUI. Currently I am using this variable here:

@State var timeRemaining: Date = Date(timeIntervalSinceNow: 30)


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题