Skip to content

About

Background timer that works without background modes.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages