3D Touch Peek and Pop Implementation for iOS App

NOVASOLUTIONS.TECHNOLOGY is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
3D Touch Peek and Pop Implementation for iOS App
Simple
~1 business day
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1052
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Implementing 3D Touch Peek and Pop for iOS App

3D Touch (iPhone 6s–X) allowed "peeking" into content without switching — Peek (light press, preview) and Pop (hard press, full transition). With iPhone XR and iOS 13, functionality moved to Haptic Touch via UIContextMenuInteraction and UIPreviewInteractionDelegate. Modern implementation via UIContextMenuInteraction works on all devices — both 3D Touch and Haptic Touch.

Modern Approach: UIContextMenuInteraction with Preview

func contextMenuInteraction(
    _ interaction: UIContextMenuInteraction,
    configurationForMenuAtLocation location: CGPoint
) -> UIContextMenuConfiguration? {

    // Peek — custom preview controller
    let previewProvider: UIContextMenuContentPreviewProvider = {
        let previewVC = ArticlePreviewViewController(article: self.article)
        previewVC.preferredContentSize = CGSize(width: 300, height: 400)
        return previewVC
    }

    return UIContextMenuConfiguration(
        identifier: article.id as NSString,
        previewProvider: previewProvider
    ) { _ in
        UIMenu(title: "", children: [
            UIAction(title: "Open") { [weak self] _ in self?.openArticle() },
            UIAction(title: "Save") { [weak self] _ in self?.saveArticle() }
        ])
    }
}

// Pop — action when tapping on preview
func contextMenuInteraction(
    _ interaction: UIContextMenuInteraction,
    willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration,
    animator: UIContextMenuInteractionCommitAnimating
) {
    animator.addCompletion { [weak self] in
        self?.openArticle()
    }
}

willPerformPreviewActionForMenuWith — analog of old Pop: fires when user taps on preview to open fully. animator.addCompletion executes after transition animation.

Timeline Benchmarks

Implementing Peek and Pop via UIContextMenuInteraction with custom preview controller — 1 working day. Includes testing on iPhone with 3D Touch (6s–X) and Haptic Touch (XR and newer).