Use this tags for questions concerning peek & pop behaviour on iPhone 6S.
Questions tagged [peek-pop]
31 questions
16
votes
1 answer
Peek and Pop on UITableView cells fails with UISearchController
Peek and Pop is working with a UISearchController. However, Peek and Pop stops working once you start searching the table using updateSearchResults.
I've extended Apple's Table Search with UISearchController demo to support Peek and Pop as an…

TruMan1
- 33,665
- 59
- 184
- 335
11
votes
1 answer
how to peek and pop view controllers in iOS 13
Peek and pop (UIViewControllerPreviewing) is deprecated in iOS 13. It is to be replaced with the new contextMenuInteraction stuff.
So how do I replace peek and pop directly? In other words, how do I display the target view controller as a preview…

matt
- 515,959
- 87
- 875
- 1,141
7
votes
3 answers
App is freezing in 'peek and pop' implementation in iPhone 6s
I have implemented peek and pop in my app and it works perfectly. But on continuously trying it for 7-8 times, the app freezes on peek view. The only option I have is to kill the app and re-run. Please let me know the reason for the freeze. I have…

devops_engineer
- 599
- 1
- 5
- 13
6
votes
1 answer
3D Touch doesn't work when searchController is active
I have implemented 3D Touch with uicollectionview, it worked fine. But when the uisearchController is active, the 3D Touch doesn't work. The uisearchController uses the collectionView to show the results.
same problem with the following post:
3d…

user8771003
- 61
- 3
6
votes
2 answers
Vibrate iPhone 6S manually like peek and pop?
How can I manually trigger a single click-like vibration like the ones that happen when using peek&pop, or application shortcuts?

vrwim
- 13,020
- 13
- 63
- 118
5
votes
1 answer
3D Touch Peek in transform-inverted table view cell
I have a chat application where I am using the inverted table view technique (table view is scaled to (1, -1) with a transform, and all the cells themselves are scale to (1, -1) as well, neutralizing the effect, thus effectively inverting the table…

Can Poyrazoğlu
- 33,241
- 48
- 191
- 389
5
votes
0 answers
3D touch: pop controller without peek
I have list of some content items it table view, and controller for options for each item.
I present this options controller on 3D touch or long tap for old devices.
I've implemented it in very basic way:
extension ViewController {
func…

frozen_lion
- 648
- 5
- 18
5
votes
2 answers
How can I round the corners of the sourceRect for Peek and Pop 3D Touch?
In Safari, if you use 3D touch, the sourceRect of the link that is being touched has rounded corners. When I set the source rect in: func previewingContext(previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint)…

SirRupertIII
- 12,324
- 20
- 72
- 121
4
votes
0 answers
3D Touch, Peek & Pop with different frame size
I implement the peek & pop for my photo view.
I set the peek view controller's preferredSize to fit the photo in
- (UIViewController*)previewingContext:viewControllerForLocation:
It looks OK:
And just push it as the viewControllerToCommit in
-…

Soul Clinic
- 1,189
- 12
- 18
4
votes
1 answer
Why don't some of my push storyboard segues show an option for peek and pop?
Some of my push segues show an option for peek & pop while other push segues don't show the option. Why is that?

Steve Moser
- 7,647
- 5
- 55
- 94
3
votes
1 answer
Peek/Pop preview ignores cell corner radius in collection view
I have added 3D Touch Peek/Pop functionality to my collection view cells and it works great, however I've noticed that the preview frame does not respect the corner radius of the cells.
Here's my previewing function:
func…

user3746428
- 11,047
- 20
- 81
- 137
2
votes
0 answers
Peek and Pop leaking the mainWindow.rootViewController
When I use 3D Touch to Peek and Pop a view controller, my app UIApplication.shared.delegate?.window??.rootViewController is retained by Apple _UIFullScreenPresentationController
So if I switch the rootViewController, the old one is never released.…

Raphaël Pinto
- 653
- 8
- 20
2
votes
1 answer
Is it possible to implement a custom behavior for 3D Touch on links with WKWebView?
I'm trying to add my own implementation of 3D touch on links with WKWebView so I set the allowsLinkPreview property of my WKWebView to false.
But then, impossible to check whether the 3D touch was on a link and impossible to know what link…

Randy
- 4,335
- 3
- 30
- 64
2
votes
1 answer
Have video: After Peek and Pop (3D Touch) background keeps scrolling
Video of the bug: Video
I have a regular table view with UITableViewCells. It looks like messages. I have another view controller OperationDetailsViewController.
In table view delegate I have this:
// need that dict for 3D touch
var…

Paul T.
- 4,938
- 7
- 45
- 93
2
votes
0 answers
Peek and Pop with preview item actions (viewDidDisappear called twice)
on iOS 9 with peek and pop implementation why viewDidDisappear method is called twice in this case ?
for exemple i peek the view controller, then I see all preview actions of the view controller without using actions , then when a pop the view…

Arnold Mapps
- 190
- 3
- 11