A Swift library that provides peek, pop, and preview actions for iOS devices without 3D Touch capability.
PeekView is an open-source iOS library that simulates 3D Touch interactions—specifically peek, pop, and preview actions—on devices that lack the hardware capability. It allows developers to maintain feature parity across all supported iOS versions by using long-press gestures as an alternative trigger. The library provides a customizable content view and action menu to replicate the native 3D Touch experience.
iOS developers building apps that require peek-and-pop functionality but need to support older devices without 3D Touch hardware. It's particularly useful for teams aiming to deliver a consistent user experience across diverse iPhone and iPad models.
Developers choose PeekView because it offers a straightforward, drop-in solution to implement 3D Touch-like interactions without requiring hardware-specific code. Its compatibility with both Swift and Objective-C, along with customizable UI components, makes it a versatile choice for enhancing app interactivity on non-3D Touch devices.
PeekView supports peek, pop and preview actions for iOS devices without 3D Touch capibility
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Simulates 3D Touch interactions on iOS devices without the hardware, supporting iOS 8 and later for consistent peek-and-pop experiences across all users.
Allows any UIViewController to be used as peek content with configurable frame sizing, as demonstrated in the sample code with expectedContentViewFrame.
Supports an array of preview actions with styles like Default, Destructive, and Selected, each triggering completion handlers for interactive menus.
Can be installed via CocoaPods or manual drag-and-drop, with straightforward Swift usage and a static function for Objective-C compatibility.
The README notes the Objective-C support is 'sort of hacky,' requiring NSDictionary arrays and a different static function, which complicates integration.
Selected action style functionality is incomplete, and content view panning animation needs smoothing, as listed in the 'Things that need improving' section.
Code documentation is acknowledged as needing improvement, which can hinder customization and debugging for developers.