Xcode7.1-beta3 (7B85): Peek & Pop segues are not available for "manual" segues
| Originator: | benchatelain | ||
| Number: | rdar://23084535 | Date Originated: | 13-Oct-2015 12:30 AM |
| Status: | Closed | Resolved: | Behaves as intended |
| Product: | Developer Tools | Product Version: | Xcode7.1-beta3 (7B85) |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
The new Peek & Pop (Commit) segue option (22886994) in Xcode 7.1 beta 3 is configurable for “action” segues (i.e. from a button) but not for “manual” segues which can be triggered from code.
Steps to Reproduce:
1. Download the sample project at https://github.com/phatblat/PushPopSplitView
2. Select the “PeekPop” segue from the Button and view the Attributes inspector (Peek & Pop sections is configurable)
—> http://cl.ly/image/3A333z1q3K1R
3. Select the “Manual” segue (no Peek & Pop)
—> http://cl.ly/image/1j0b3O213A37
Expected Results:
The Attributes inspector will show the Peek & Pop section, like when “PeekPop” is selected
Actual Results:
No Peek & Pop section appears in the Attribute inspector.
Notes:
Attempting to manually add a commit/preview pair of nested segues (like the working “PeekPop” segue, but at the viewController level) just makes Xcode do weird things, but never shows the Peek & Pop section to confirm the connections.
<connections>
<segue destination="vC3-pB-5Vb" kind="show" id="kDJ-E0-hLD">
<segue key="commit" inheritsFrom="parent" id="X2a-gH-Dii"/>
<segue key="preview" inheritsFrom="commit" id="IoG-H7-CKb"/>
</segue>
</connections>
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!
Apple's response
This issue behaves as intended based on the following:
This is the intended behavior. 3D Touch segues require an associated view, and cannot be manually invoked.
However for Peek & Pop enabled action segues, you can invoke the Commit (Pop) phase by identifier, if you assign one.
Please update your bug report to let us know if this is still an issue for you.