Creating a WatchKit app with Timers should be fairly easy.  There’s a nice 
interface object called WKInterfaceTimer which should  do the trick - at least 
for the UI interface. Here’s a link to the documentation:

https://developer.apple.com/documentation/watchkit/wkinterfacetimer 
<https://developer.apple.com/documentation/watchkit/wkinterfacetimer> 

You might also be interested in reading the WatchKit Programming Guide.  It 
explains that WatchKit apps, are quite different from iOS applications.  The 
Interface is running in a separate process from your actual code - which is 
running in a watch extension.  

https://developer.apple.com/library/content/documentation/General/Conceptual/WatchKitProgrammingGuide/index.html
 
<https://developer.apple.com/library/content/documentation/General/Conceptual/WatchKitProgrammingGuide/index.html>

Your extension does not run for very long.  Apple is extremely aggressive about 
how much time a watch extension will run.  Running for a long period of time is 
useful if you are collecting biometric data (heart rate, etc).  

A simple Timer application should be doable.  One of the challenges will be how 
to tell your user that the timer has finished.  The simplest thing I can think 
of is to schedule a Local Notification. That should be able to get your user’s 
attention!

Hopefully this helps you move in the right direction.

Scott
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to