Skip to content

Some needed functionalities are missing #9

@amirsaam

Description

@amirsaam

Hello,
First of all thanks for your effort on the package.

Since I am trying to use your Timer in my project, unfortunately lack of some functionalities are hardly noticed.

  1. When timer ends, timer needs to have a Bool to notify UI about it, isTimerRunning is good only about the current situation of Timer that becomes false when you pause it and you are able to resume it but there is no result of the timer to know actually it did finish to run other actions when it did "actually" finish.
  2. Timer has no abort/skip functionality, as a whole you may think you don't need such but actually as in my project be able to skip/abort the timer and get the finished boolean as mentioned in # 1 is crucial.
  3. Timer is no class friendly to be used in ViewModels for example. The Bindings in the initialisers are making it not work unless you import SwiftUI and make custom Binding to the Published variables.

As a request, please add extra initialisers to be able to just pass them variables in classes, abort/skip functionality and a finish report.

Thanks again for your package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions