Skip to content

badoo/BMAGridPageControl

Repository files navigation

Build Status Carthage compatible

A different page control

demo

demo2

Do you want to suggest to your users that they can do more than just scrolling? Enter BMAGridPageControl.

BMAGridPageControl is designed to be really similar to UIPageControl. You control it specifying a total number of items, and a current item. The control will highlight the current item as it was inside a grid.

Testing

While developing this small control, we also wanted to check how you would apply TDD to it. We came out with a two-class implementation: A driver and the control itself. Check the sources and tell us what you think!

Installation

CocoaPods

Add the pod to your Podfile:

pod 'BMAGridPageControl'

Carthage

Add the repository to your Cartfile:

github "badoo/BMAGridPageControl"

Then drag and drop the produced BMAGridPageControl.framework from Carthage/build

Manual

Just drop into your project the files under BMAGridPageControl directory.

License

Source code is distributed under MIT license.

Blog

Read more on our tech blog or explore our other open source projects