Skip to content

bullinnyc/BackgroundTimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BackgroundTimer

Background timer that works without background modes.

Usage

struct MyView: View {
    @StateObject private var backgroundTimer = BackgroundTimer()
    
    var body: some View {
        Text("\(backgroundTimer.timeRemaining)")
            .font(.title)
            .foregroundStyle(.red)
            .onAppear {
                backgroundTimer.start(with: 30)
            }
    }
}

Requirements

License

  • BackgroundTimer is distributed under the MIT License.

About

Background timer that works without background modes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages