DJKFlipper 0.1.6

DJKFlipper 0.1.6

DocsDocumented
TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2015
SPMSupports SPM

Maintained by Dan Koza.


Downloads

Total236
Week0
Month6

Installs

Apps43
Test Targets3
powered by Segment

GitHub

Stars36
Watchers3
Forks5
Issues1
Contributors1
Pull Requests1

Code

Files7
SizeIntegration Size 64 kb
LOCLines of Code 666


  • By
  • Dan Koza

DJKFlipper

Flipboard like animation built with swift.

Flipboard playing multiple GIFs

Installation

Usage

import DJKFlipper
  • Conform to the DJKFlipperDatasource protocol in your viewController

DataSource Methods

func numberOfPages(flipper:DJKFlipper) -> NSInteger
  • Give DJKFlipper the number of pages you want to flip through
func viewForPage(page:NSInteger, flipper:DJKFlipper) -> UIView
  • Everytime a page will flip you will need to pass the view of the viewcontroller you want to display.
func viewForPage(page: NSInteger, flipper: DJKFlipper) -> UIView {
        var viewController = yourViewControllerArray[page] as! YourViewController
        return viewController.view
}

TODO

  • Add a reload method when datasource changes.
  • Add some error handling :)
  • Add ability to change flip from left/right to top/bottom