Xcode9b2 - can't demote a UISlider to a UIView
| Originator: | markd | ||
| Number: | rdar://33158395 | Date Originated: | 7/6/2017 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Version 9.0 beta 2 (9M137d) |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: Hi! I'd like to be able in Interface Builder (Storyboard) or Xib) to take an existing UISlider and demote it to a UIView without having to delete and recreate. My use case - I have an existing UISlider in a complex configuration (constraints, etc), and I want to replace it with a MPVolumeView. To do that, I have to add the MPVolumeView to a plain old view. Right now, attempting to change the class of the slider to UIView is being rejected, requiring a lot of surgery to the interface. Steps to Reproduce: 1. drag a UISlider into a view 2. select slider 3. Go to the command-option-3 panel 4. Type UIView in the "Class" textfield and press return Expected Results: 5. Class changes to UIView, existing constraints are preserved. Things like UIControl connections get purged Observed Results: 5. class textfield is cleared, and retains "UISlider" as the prompt text. Version: Version 9.0 beta 2 (9M137d) 10.12.5 (16F73)
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!