Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. MSPeekCollectionViewDelegateImplementation

MSPeekCollectionViewDelegateImplementation

MITSwift3.2.0

A custom UICollectionViewLayout that enables peek behavior for previous and next items in iOS collection views.

Visit WebsiteGitHubGitHub
356 stars32 forks0 contributors

What is MSPeekCollectionViewDelegateImplementation?

MSPeekCollectionViewDelegateImplementation is a Swift library that adds a custom paging behavior to UICollectionView, allowing adjacent items to peek into view. It solves the need for modern iOS app designs where horizontal scrolling sections are embedded within vertical layouts, providing visual cues for scrollable content.

Target Audience

iOS developers building apps with complex collection view layouts that require horizontal scrolling sections with peek previews, especially those using UIKit and Swift.

Value Proposition

Developers choose this library because it offers a simple, non-invasive integration without requiring inheritance from UICollectionViewController, provides extensive customization options, and uses a robust custom layout to reduce bugs.

Overview

A custom paging behavior that peeks the previous and next items in a collection view

Use Cases

Best For

  • Implementing horizontally scrolling carousels with peek previews in iOS apps
  • Adding visual scroll indicators to nested collection views
  • Creating modern app interfaces with horizontal sections inside vertical scrolls
  • Building customizable paging behaviors for UICollectionView
  • Developing iOS UI components that require controlled item scrolling
  • Enhancing user experience with peekable adjacent content in collection views

Not Ideal For

  • Apps built entirely with SwiftUI, as it's UIKit-specific and not compatible with declarative UI frameworks
  • Projects needing infinite scrolling or dynamic data loading, since it's designed for fixed item counts with peeking behavior
  • Teams using alternative collection view libraries like IGListKit, where integration might conflict or be redundant

Pros & Cons

Pros

Robust Layout Integration

Uses a custom UICollectionViewLayout for peeking logic, which the README notes reduces bugs and simplifies integration compared to previous delegate-based hacks in version 3.0.0.

Highly Configurable Parameters

Allows fine-tuning of cell spacing, peek width, and scrolling limits, enabling precise control over UI behavior as demonstrated in the initialization options.

Vertical Scroll Support

Automatically handles vertical scrolling directions by positioning cells correctly, making it versatile for different layout needs without extra code.

Programmatic Index Control

Provides functions like scrollToItem and delegate access to currentIndex, enhancing interactivity and control over navigation.

Cons

Breaking Changes in Updates

Version 3.0.0 requires migration steps from v2, indicating significant architectural shifts that could disrupt existing projects and introduce instability.

Manual Delegate Boilerplate

Requires explicit calls in scrollViewWillEndDragging and other delegate methods, adding complexity and potential for integration errors.

Limited Advanced Features

Lacks built-in support for dynamic item sizes, accessibility enhancements, or handling nested scrolling conflicts, which might require additional work.

Frequently Asked Questions

Quick Stats

Stars356
Forks32
Contributors0
Open Issues15
Last commit2 years ago
CreatedSince 2018

Tags

#mobile-ui#ios#collectionviewlayout#paging#peek#collectionview#delegate#custom-layout#cell#ui-components#uicollectionview#cocoapods#swift

Built With

U
UIKit
C
CocoaPods
S
Swift

Links & Resources

Website

Included in

iOS51.7k
Auto-fetched 3 hours ago

Related Projects

IGListKitIGListKit

A data-driven UICollectionView framework for building fast and flexible lists.

Stars13,069
Forks1,540
Last commit1 month ago
CollectionKitCollectionKit

Reimagining UICollectionView

Stars4,511
Forks265
Last commit3 years ago
ReusableReusable

A Swift mixin for reusing views easily and in a type-safe way (UITableViewCells, UICollectionViewCells, custom UIViews, ViewControllers, Storyboards…)

Stars2,983
Forks233
Last commit2 years ago
DisplaySwitcherDisplaySwitcher

Custom transition between two collection view layouts

Stars2,305
Forks184
Last commit5 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub