DJKFlipper 0.1.6

DJKFlipper 0.1.6

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2015
SPMSupports SPM

Maintained by Dan Koza.


Downloads

Total259
Week1
Month5

Installs

Apps50
Apps WeekApps This Week 1
Test Targets3
powered by Segment

GitHub

Stars36
Watchers3
Forks6
Issues1
Contributors1
Pull Requests1

Code

Files7
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