Skip to content

BNSlidingViewController is a Swift controller mimics the player overlay in iTunes iOS app

License

Notifications You must be signed in to change notification settings

bennagar/BNSlidingViewController

Repository files navigation

BNSlidingViewController

build Language platform platform platform

BNSlidingViewController is a Swift controller mimics the player overlay in iTunes iOS app. Created by Ben Nagar.

Animation

Requirements

  • Xcode 7.2
  • iOS 7.0+

Installation

Just add BNSlidingViewController.swift to your project.

Usage

  1. Create your SlidingPanelViewController and make it implement Slidable protocol
  • collapsedView need to be your ViewController's view
  • expandedView need to be external view, NOT subview of you collapsedView (you can see easy way to do it in the demo project)

Alt text

  1. Create your MainViewController subclassing BNSlidingViewController
  • in viewDidLoad() get your SlidingPanel and pass it to setup()
  1. you can override this method in your MainViewController to handle state changes
  override func didChangeState(newState: SliderState) {
      super.didChangeState(newState)
      //change you view according to the new state
  }

License

BNSlidingViewController is available under the MIT license. See the LICENSE file for more info.

Follow on Twitter ✨CodeLetter ✎ ✨ platform

About

BNSlidingViewController is a Swift controller mimics the player overlay in iTunes iOS app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages