Animate WKInterfaceObject width to/near zero?

I'd like to animate the width of a number of WKInterfaceObjects (buttons, groups) to zero or virtually zero. However, the setWidth reference says "Specify

0.0
to revert to the width specified in your storyboard file." I'd be OK with specifying a width of 0.001 or even 0.1 but setWidth interprets anything less than 0.25 as zero. Not an issue for a single object, but I have 12 of them stacked up and can't get a smooth animation from the final 12 * 0.25 points to zero. (This is on watchOS 2)


I'll file a bug report but does anyone have a workaround?


Thanks.

Answered by tom_witkin in 21138022

You can set the width of an object to 0.0 in watchOS 2. The behavior you're referring to where the width is reset to the storyboard value is only for watchOS 1 apps.

Accepted Answer

You can set the width of an object to 0.0 in watchOS 2. The behavior you're referring to where the width is reset to the storyboard value is only for watchOS 1 apps.

Wasn't working in beta 2, but works as you describe in beta 3.

Animate WKInterfaceObject width to/near zero?
 
 
Q