Bento

screenshot of Bento

Swift library for building component-based interfaces on top of UITableView and UICollectionView

Overview

Bento is a Swift library for building component-based interfaces on top of UITableView. It enables developers to create reusable components and share custom UI across multiple screens of an app. The aim of Bento is to make UI-related code easier to build and maintain by treating UI as a function of state.

Features

  • Declarative: Provides a painless approach for building UITableView interfaces.
  • Diffing: Reloads UI with beautiful animations when data changes.
  • Component-based: Design reusable components and share custom UI across multiple screens of your app.

Cocoapods

Add the following line to your Podfile:

pod 'Bento'

Then run the command:

pod install

Carthage

Add the following line to your Cartfile:

github "Bento-Swift/Bento"

Then run the commands:

carthage update

Followed by:

carthage build --platform iOS

Summary

Bento is a Swift library for building component-based interfaces on top of UITableView. It offers a declarative approach to building UITableView interfaces, provides diffing capabilities for animated UI updates, and supports component-based design for reusable UI across multiple screens. Bento aims to make UI-related code easier to build and maintain by treating UI as a function of state. It can be installed using Cocoapods or Carthage.