Bohr alternatives and similar libraries
Based on the "Table View / Collection View" category.
Alternatively, view Bohr alternatives based on common mentions on social networks and blogs.
-
SwipeCellKit
Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift. -
MCSwipeTableViewCell
👆 Convenient UITableViewCell subclass that implements a swippable content to trigger actions (similar to the Mailbox app). -
HGPlaceholders
Nice library to show placeholders and Empty States for any UITableView/UICollectionView in your project -
ReverseExtension
A UITableView extension that enables cell insertion from the bottom of a table view. -
CenteredCollectionView
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift -
CascadingTableDelegate
A no-nonsense way to write cleaner UITableViewDelegate and UITableViewDataSource in Swift. -
GLTableCollectionView
Netflix and App Store like UITableView with UICollectionView, written in pure Swift 4.2 -
ListPlaceholder
ListPlaceholder is a swift library allows you to easily add facebook style animated loading placeholder to your tableviews or collection views. -
KDDragAndDropCollectionView
This component allows for the transfer of data items between collection views through drag and drop -
DataSources
💾 🔜📱 Type-safe data-driven CollectionView, TableView Framework. (We can also use ASCollectionNode) -
DTTableViewManager
Protocol-oriented UITableView management, powered by generics and associated types. -
TLIndexPathTools
TLIndexPathTools is a small set of classes that can greatly simplify your table and collection views. -
CollapsibleTableSectionViewController
:tada: Swift library to support collapsible sections in a table view. -
RHPreviewCell
I envied so much Spotify iOS app this great playlist preview cell 😍, I decided to create my own one 🌶. Now you can give your users ability to quick check "what content is hidden under your UITableViewCell". Great think is that this Library not requires 3D Touch support from user device💥. -
SquareMosaicLayout
An extandable mosaic UICollectionViewLayout with a focus on extremely flexible customizations :large_orange_diamond: -
HoverConversion
HoverConversion realized vertical paging with UITableView. UIViewController will be paging when reaching top or bottom of UITableView contentOffset. -
GenericDataSource
A generic small reusable components for data source implementation for UITableView/UICollectionView in Swift. -
PJFDataSource
PJFDataSource is a small library that provides a simple, clean architecture for your app to manage its data sources while providing a consistent user interface for common content states (i.e. loading, loaded, empty, and error). -
AZCollectionViewController
Easy way to integrate pagination with dummy views in CollectionView, make Instagram "Discover" within minutes. -
ios-dragable-table-cells
Objective-C library for drag-n-drop of UITableViewCells in a navigation hierarchy of view controllers.
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Bohr or a related project?
README
THIS PROJECT IS NO LONGER MAINTAINED. HERE ARE SOME SUITABLE ALTERNATIVES:
Bohr allows you to set up a settings screen for your app with three principles in mind: ease, customization and extensibility.
By default, Bohr supports multiple setting types such as strings, booleans or times. However, this framework has been built with extensibility in mind, meaning you can build your own custom classes to support any kind of setting type you want.
Why "Bohr"?
"Bohr" comes from Niels Bohr, conceiver of an atomic model which introduces the concept of electronic configuration, a way to organize electrons by layers around the atom nucleus.
True story.
Installation
Carthage
github "DavdRoman/Bohr"
CocoaPods
pod 'Bohr'
Manual
Drag and copy all files in the [Bohr](Bohr) folder into your project.
At a glance
Basic setup
The settings screen you're going to set up is represented by a UITableViewController
subclass called BOTableViewController
. Such controller manages BOTableViewSection
instances, and each one of those manages a set of BOTableViewCell
instances.
Here's an example of a really simple setup included in the demo project. Please check it out to see the full implementation. Please notice the code below belongs inside the setup
method of a subclassed BOTableViewController
.
- (void)setup {
[self addSection:[BOTableViewSection sectionWithHeaderTitle:@"Section 1" handler:^(BOTableViewSection *section) {
[section addCell:[BOSwitchTableViewCell cellWithTitle:@"Switch 1" key:@"bool_1" handler:nil]];
}]];
}
Built-in BOTableViewCell's
There's a bunch of built-in BOTableViewCell
subclasses ready to be used:
BOSwitchTableViewCell
: managesBOOL
values through aUISwitch
control.BOTextTableViewCell
: managesNSString
values through aUITextField
control.BONumberTableViewCell
: managesNSNumber
values through aUITextField
control.BODateTableViewCell
: managesNSDate
values representing a certain date. A revealingUIDatePicker
is used to set the time.BOTimeTableViewCell
: managesNSDate
values representing a certain time. A revealingUIDatePicker
is used to set the time.BOChoiceTableViewCell
: managesNSInteger
values (which you can understand as "options" from aNS_ENUM
) through taps on the cell itself.BOOptionTableViewCell
: manages a singleNSInteger
value (which you can understand as an "option" from aNS_ENUM
), by default depending on its position in its table view section but the setting value can be overridden. When selected, a checkmark appears on the right side.BOButtonTableViewCell
: allows the user to perform an action when the cell is tapped.BOStepperTableViewCell
: allows the user to change numeric values by tapping on a +- control.
Subclassing BOTableViewCell
Building a BOTableViewCell
subclass is fairly straightforward.
First of all, the framework contains a header file called BOTableViewCell+Subclass.h
. You must import that header in your subclass implementation file:
#import <Bohr/BOTableViewCell+Subclass.h>
That way you'll be able to access all the possible elements for you to implement in your subclass.
Please take a look to some of the built-in cells for a more detailed demonstration on how to subclass BOTableViewCell
.
License
Bohr is available under the MIT license.
*Note that all licence references and agreements mentioned in the Bohr README section above
are relevant to that project's source code only.