Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

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

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. YNExpandableCell

YNExpandableCell

MITSwift1.2.1

A Swift library for creating expandable and collapsible UITableView cells with minimal code.

Visit WebsiteGitHubGitHub
451 stars35 forks0 contributors

What is YNExpandableCell?

YNExpandableCell is an open-source iOS library written in Swift that enables developers to easily create expandable and collapsible UITableView cells. It solves the problem of managing complex insert and delete row animations by providing a simple delegate-based API. Developers can integrate customizable expandable cells into their apps with minimal setup.

Target Audience

iOS developers building apps with table views that require interactive, expandable content sections, such as settings menus, detail views, or data-driven lists.

Value Proposition

It simplifies a traditionally complex UI pattern by abstracting away manual row insertion/deletion logic, saving development time. Its flexibility allows full customization of expanded cell content while providing built-in animations and accessory types.

Overview

✨ Awesome expandable, collapsible tableview cell for iOS written in Swift 4

Use Cases

Best For

  • Adding expandable sections to iOS settings screens
  • Building interactive data tables with collapsible rows
  • Creating detail views that expand to show more information
  • Implementing accordion-style menus in iOS apps
  • Developing apps that require dynamic table view cell heights
  • Prototyping table-based UIs with expandable content quickly

Not Ideal For

  • Projects built with Objective-C or requiring cross-language compatibility
  • Apps needing expandable cells in UICollectionView instead of UITableView
  • Teams that avoid deprecated libraries and prefer actively maintained alternatives
  • Developers who want minimal abstraction and prefer to handle UITableView animations manually for full control

Pros & Cons

Pros

Simplified Delegate API

Requires implementing only one method (expandCellAt) to define expandable cells, abstracting away the complexity of manual insertRows and deleteRows animations.

Full Cell Customization

Supports any custom UITableViewCell for expanded content, allowing developers complete control over appearance without restrictions.

Batch Cell Management

Includes expandAll() and collapseAll() methods for easy simultaneous management of multiple cells, saving time in bulk operations.

Built-in Animation Control

Allows customization of UITableViewRowAnimation for expand/collapse transitions, providing smooth and configurable visual effects.

Cons

Deprecated Library

Officially deprecated in favor of ExpandableCell, meaning no future updates or support, which poses a risk for long-term maintenance and compatibility.

Custom Table View Subclass

Requires using YNTableView instead of standard UITableView, complicating integration with existing codebases and limiting flexibility with native APIs.

Limited to UITableView

Only supports UITableView, making it unsuitable for apps that need expandable cells in UICollectionView or other UI components.

Ecosystem Dependency

Adds a third-party dependency for a UI pattern that can be implemented natively, increasing project complexity and potential for dependency conflicts.

Frequently Asked Questions

Quick Stats

Stars451
Forks35
Contributors0
Open Issues7
Last commit6 years ago
CreatedSince 2017

Tags

#mobile-ui#ios#animation#expandable#cell#ui-components#swift3#cocoapods#swift#collapsible#tableview#carthage#tableviewcell

Built With

S
Swift 4.2
i
iOS

Links & Resources

Website

Included in

iOS51.7kSwift26.0k
Auto-fetched 17 hours ago

Related Projects

folding-cellfolding-cell

:octocat: 📃 FoldingCell is an expanding content cell with animation made by @Ramotion

Stars10,198
Forks1,137
Last commit2 years ago
SwipeCellKitSwipeCellKit

Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift.

Stars6,286
Forks811
Last commit2 years ago
expanding-collectionexpanding-collection

:octocat: ExpandingCollection is an animated material design UI card peek/pop controller. iOS library made by @Ramotion

Stars5,521
Forks520
Last commit6 years ago
DGElasticPullToRefreshDGElasticPullToRefresh

Elastic pull to refresh for iOS developed in Swift

Stars3,749
Forks436
Last commit4 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