A way of disabling a UIMotionEffect without removing it.
| Originator: | oliver | ||
| Number: | rdar://21680394 | Date Originated: | 2015-07-07 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 8.4 |
| Classification: | Enhancement | Reproducible: | N/A |
Summary: I think it would be useful for a developer to be able to disable a UIMotionEffect without removing it. When disabled the motion effect would not update the but it would not restore remove its effect. Eg: 1. you tilt the device - the motion changes the view's values 2. you disable the effect - the motion effect stops updating the view's values but _doesn't_ reset the relative change to zero (unlike when you remove the effect) 3. You tilt the device 4. You re-enable the effect - the motion effect updates the views values (smoothly - no jumping). In an app I'm working on I want to disable a motion effect while the user is using a long press to reorder a collection of views and then re-enable it when the long press ends. Currently removing the effects causes views to jump around which is quite visually jarring. Steps to Reproduce: N/A Expected Results: N/A Actual Results: The API doesn't support this directly. I'm now investigating ways or working around this. Version: Xcode Version 6.4 (6E35b) Notes: Configuration: iOS 8.4 SDK Attachments:
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!