Timer
Timers Made Simple. The Ultimate Swift Framework with advanced timer management, state control and reactive programming support.
Install / Use
/learn @Mijick/TimerREADME
✨ Features
<table> <tbody> <tr> <td> ⏳ </td> <td> Countdown Timer (Down-Going) </td> </tr> <tr> <td> ⏱️ </td> <td> Count-Up Timer (Elapsed Time) </td> </tr> <tr> <td> ⏸️ </td> <td> Pause Timer </td> </tr> <tr> <td> ▶️ </td> <td> Resume Timer </td> </tr> <tr> <td> ⏭️ </td> <td> Skip Timer </td> </tr> <tr> <td> ⏮️ </td> <td> Cancel Timer </td> </tr> <tr> <td> ⚡ </td> <td> Reactive programming friendly </td> </tr> </tbody> </table> <!--Description-->☀️ What is MijickTimer?
MijickTimer library is Swift-based library that offers powerful and flexible timer features for iOS and macOS and visionOS apps. It allows to create both countdown and count-up timers with enhanced state management and observation options.
<p> <h3>Count-Up Timer</h3> <p> Track elapsed time seamlessly with a count-up timer. Ideal for productivity, logging or workout apps.</p> <p> Take a look at the implementation details <a href="https://github.com/Mijick/Timer/wiki/Timer-Start-Up">here</a>. </p> </p> <img alt="A demonstration of the code used to compare the implementation of the native iOS timer framework with the custom MijickTimer." src="https://github.com/Mijick/Assets/blob/main/Timer/Code/less-code.png" width="100%"> <p> <h3>Countdown Timer</h3> <p> Easily create countdown timers to track remaining time. Perfect for games, events or task apps.</p> <p> Take a look at the implementation details <a href="https://github.com/Mijick/Timer/wiki/Timer-Start-Up">here</a>. </p> </p> <img alt="An illustration of how to create a countdown timer using only a few lines of code with the MijickTimer library." src="https://github.com/Mijick/Assets/blob/main/Timer/Code/countdown.png" width="100%"> <p> <h3>Control Timer state</h3> <p> Pause timers and resume them later without losing progress. It also allows to skip and cancel the progress. </p> <p> Take a look at the implementation details <a href="https://github.com/Mijick/Timer/wiki/Timer-State-Control">here</a>. </p> </p> </p> <img alt="Demonstrates code for controlling the Timer state via the MijickTimer library: stop, pause, resume, skip, and cancel or stop the Timer.", src="https://github.com/Mijick/Assets/blob/main/Timer/Code/state-control.png" width="100%"> <h3>Observe Timer State</h3> <p> <p> Monitor timer state with a variety of different approaches: binding, callbacks, combine, state value updates.</p> <p> Take a look at the implementation details <a href="https://github.com/Mijick/Timer/wiki/Timer-State-Observing">here</a>. </p> </p> <img alt="The code illustrates various methods for monitoring the current timer state, including binding, callbacks, combining, and state observation" src="https://github.com/Mijick/Assets/blob/main/Timer/Code/state-observe.png" width="100%"> <!--Why to choose description-->✅ Why MijickTimer?
<h4>Multiple Apple Platform Support:</h4>- iPhone, iPad. Requires iOS 13.0+ .
- Mac. Requires macOS 10.15+.
- Apple Vision Pro. Requires visionOS 1.0+.
- Modern, efficient, and designed for performance.
- Handles countdowns, count-ups, pausing, resuming and state management seamlessly.
- Choose callbacks, bindings or Combine for the implementation that works best for you.
- Provides the ability to access the state of a specific timer from any part of the code base.
🚀 How to use it?
Visit the framework's documentation to learn how to integrate your project with MijickTimer. <br> See for yourself how does it work by cloning project we created
<!--Community-->🍀 Community
Join the welcoming community of developers on Discord.
<!--Contribution-->🌼 Contribute
To contribute a feature or idea to MijickTimer, create an issue explaining your idea or bring it up on Discord. <br> If you find a bug, please create an issue. <br> If you would like to contribute, please refer to the Contribution Guidelines.
<!--Sponsorship-->💜 Sponsor our work
Support our work by becoming a backer.
Related Skills
openhue
347.0kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
347.0kElevenLabs text-to-speech with mac-style say UX.
weather
347.0kGet current weather and forecasts via wttr.in or Open-Meteo
tweakcc
1.6kCustomize Claude Code's system prompts, create custom toolsets, input pattern highlighters, themes/thinking verbs/spinners, customize input box & user message styling, support AGENTS.md, unlock private/unreleased features, and much more. Supports both native/npm installs on all platforms.
