WatchKit: WKInterfaceImage Should Animate Index Sets, Not Just Ranges
| Originator: | SlaunchaMan | ||
| Number: | rdar://20294771 | Date Originated: | 25-Mar-2015 02:02 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | Xcode Version 6.2 (6C131e) |
| Classification: | Enhancement | Reproducible: | Always |
Summary:
Using ‑[WKInterfaceImage startAnimatingWithImagesInRange:duration:repeatCount:], you can provide an arbitrary range of images to animate. Say you have image0 through image360 to animate a circle filling up; you could pass a range of {0, 270} to just animate part of it. It would be nice to be able to specify an index set instead of a range so that animation frames didn’t have to be contiguous.
Steps to Reproduce:
1. Create an animation sequence of 361 images, from image0 to image360.
2. For a given value between 0 and 1, write a function that produces an animation curve for a 60fps animation and the images in step 1, one per frame, each frame in order in an NSIndexSet.
3. Attempt to use that index set to animate the image.
Expected Results:
There is a version of ‑[WKInterfaceImage startAnimatingWithImagesInRange:duration:repeatCount:] that takes an NSIndexSet for its first argument, perhaps something like ‑[WKInterfaceImage startAnimatingWithImagesInIndexSet:duration:repeatCount:].
Actual Results:
The only way to animate is using a range, which loses the animation curve in favor of a linear animation.
Version:
Xcode Version 6.2 (6C131e)
Notes:
See https://devforums.apple.com/thread/266213.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!