swiftwatchkitapple-watchwatchos-3

How to implement WatchKit sliding button?


Is there a way to implement a sliding button on the watch, similar to the power button linked below?

power off screen from watch


Solution

  • I ended up using SpriteKit to add an SKSpriteNode to the scene with my image. It doesn't have the smoothness of the power off slider, but that could probably be tweaked. Using an SKAction to move the icon instead of setting the coordinates directly helped but it's not perfect.