yangzexin / HMLauncherView

UI component for buttons like Apple's SpringBoard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HMLauncherView

Version License Platform

HMLauncherView is an UI component which mimics the iOS homescreen (a.k.a SpringBoard) behaviour. Added icons can be reordered and removed. In addition the HMLauncherView supports drag&drop of icons between several HMLauncherView instances. Checkout the demo video: Demo Video showing the launcher icon movement

Usage

To run the example project; clone the repo, and run pod install from the Example directory first.

The HMLaucherView needs a datasource and a delegate. The implementation of HMLauncherDataSource has to provide the grid dimensions (columns/rows), the number of pages, and accessor methods to the HMLaucherIcons, which represents the icons of the laucher view.

The HMLauncherViewDelegate should react to any interactions (like dragging, tapping, deleting) on the launcher view. In addition the delegate is resposible to find out to which the current dragged HMLaucherIcon belongs to.

Checkout the LauncherService class of the example project.

Installation

HMLauncherView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "HMLauncherView"

Author

Heiko Maaß, mail@heikomaass.de

License

HMLauncherView is available under the Apache 2.0 license. See the LICENSE file for more info.

About

UI component for buttons like Apple's SpringBoard

License:Other


Languages

Language:Objective-C 94.3%Language:Ruby 5.7%