GithubHelp home page GithubHelp logo

slidingtoppanel's Introduction

SlidingTopPanel

This library was built because I did not found anything like it in the IOS community (all the 'swipeable' views were refering to the navigation drawer, default from the left, which does not fit my needs, even if it comes from the top, as it doesn't have the draggable functionallty), it's the swift crappy equivlent of AndroidSlidingUpPanel made by umano.

###Carthage

github "nadav96/SlidingTopPanel" "master"

###Basic usage

The UIView is splited into two main subviews: PopView and MainView

alt text

  • initialization
let slider: SlidingTopView = 
    SlidingTopView(parent: self.view.frame, popBarSize: 90, navigationHeight: 
    (self.navigationController?.navigationBar.frame.size.height)!)

let mainContentView: UIView = UIView()
mainContentView.frame = slider.MainViewFrame

let popperView: UIView = UIView()
popperView.frame = slider.PopViewFrame

//Adding the views to the main slider, this is very importent!
slider.AddMainView(mainContentView)
slider.AddPopView(popperView)

//For debugging, color the views:
mainContentView.backgroundColor = UIColor(hex: "#")
popperView.backgroundColor = UIColor(hex: "#")


self.view.addSubView(slider)

And that's it, now you have the most basic panel that can slide from the top!

Let's be honest, this is a very very buggy implemention, and because I guess some people would find this UIView useful, I figured, why not work togther to make this as awesome as umano alterntive in the Android world?

So, If you have some time and want to contribute, you are more then welcome to join in! :D

Here is another screenshot of the view in action: alt text

slidingtoppanel's People

Contributors

nadav96 avatar

Stargazers

pawin avatar Maximilian Alexander avatar

Watchers

James Cloos avatar  avatar  avatar

slidingtoppanel's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.