Coder Social home page Coder Social logo

caitlinelfring / pttimer Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 1.0 22 KB

Simple, customizable Swift Timer/Stopwatch framework

Home Page: https://powertimer.app

License: MIT License

Swift 87.01% Ruby 7.09% Shell 5.90%
swift ios timer countdown stopwatch countup

pttimer's Issues

SwiftUI

An example with SwiftUI and the necessary changes would be useful

Continue running timer

I store the starting Date() of a running time, calculate the difference between Date().now and the starting Date, fetch the results in seconds, i.e. know, that the timer started running 250 seconds ago. How can I restart at this value, i.e. if the app was closed?

Permanently stop the timer

timer.reset() just reset the timer to it's initial state, and timer keeps counting again from that initial state. How can i permanently stop the timer?

timerTimeDidChange is not getting called

I've added PTTimer and I'm using PTTimer.Up(maxSeconds: 60 * 10) and want to update the UI using the timerTimeDidChange method, but the method is not being called after starting the timer. Could you please help me with this one?

I've also added the delegate self.myTimer.delegate = self to viewDidLoad method

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.