Sprite Kit: size getter returns an invalid value for negatively scaled sprites
| Originator: | batalia.nerdys | ||
| Number: | rdar://22821479 | Date Originated: | |
| Status: | Resolved: | ||
| Product: | iOS | Product Version: | 9.0 |
| Classification: | Bug | Reproducible: | Always |
Summary: When a sprite's scale is negative (xScale, yScale, or both), sprite.size will return an invalid value (also negative). The size getter should never return negative values - this has the potential to crash many existing Sprite Kit apps. The issue did not occur on pre-iOS 9 systems. Please see the attached project for an example. Steps to Reproduce: 1. Set a sprite's scale to -1. 2. Get its size. Expected Results: Only positive values in the sprite's dimensions. Actual Results: Negative values for the sprite's dimensions. Version: iOS 9.0 (13A344) Notes: The issue started occurring only on iOS 9.
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!