Apple watch: Creating mail app style rows in WKInterfaceTable

158 views Asked by At

I would like to be able to create rows for a WKInterfaceTable that, once the user slides them from right to left, show an extra control (like it happens with the mail app in the Apple Watch).

Here is an image of the Mail app (please refer to the top left and bottom left image):

http://core0.staticworld.net/images/article/2015/04/applewatch_mail-100581468-medium.idge.jpg

Any idea on how they did it?

1

There are 1 answers

7
John On

This is currently not possible for normal third-party developers. WatchKit just does not offer this. Refer to the WatchKit Framework Reference, which is available here.

Apple may allow native watch applications (offering more options) later this year. Maybe we will know more already next month (WWDC).

Is a custom control possible that mimics that behavior?

I see two problems:

  • Your WatchKit code does not run on the watch but on the iPhone (it's an extension). Even if you could implement some custom control that can change its position, it may be very choppy because of the BT connection. See here.
  • Also, you would have to be able to detect the location of the finger. I don't know about a WatchKit method that gives you this information.