Latest 0.1.1
Homepage https://github.com/sagaya/BottomDrawer
License MIT
Platforms ios 9.0
Frameworks UIKit, MapKit
Authors

CI Status
Version
License
Platform

BottomDrawer is an iOS component which presents a dismissible view from the bottom of the screen. BottomDrawer can be a useful replacement for popups and menus but can hold any viewcontroller so the use cases are endless. This repository includes the BottomDrawer component itself but also includes an extension for autolayout (NSLayoutConstraint)

Installation

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

pod 'BottomDrawer'

Getting Started

let request = self.storyboard?.instantiateViewController(withIdentifier: "test") as? TestViewController
//TestViewController has to subclass BottomController
let controller = BottomController()
controller.destinationController = request
controller.sourceController = self 
controller.startingHeight = 500
controller.movable = false //The view won't be movable 
controller.modalPresentationStyle = .overCurrentContext
self.present(v, animated: true, completion: nil)

Example

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

Requirements

Author

sagaya, [email protected]

License

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

Latest podspec

{
    "name": "BottomDrawer",
    "version": "0.1.1",
    "summary": "iOS component which presents a dismissible view from the bottom of the screen",
    "description": "BottomDrawer is an iOS component which presents a dismissible view from the bottom of the screen. BottomDrawer can be a useful replacement for popups and menus but can hold any viewcontroller so the use cases are endless. This repository includes the BottomDrawer component itself but also includes an extension for autolayout (NSLayoutConstraint)",
    "homepage": "https://github.com/sagaya/BottomDrawer",
    "screenshots": "https://github.com/sagaya/BottomDrawer/raw/master/screenshot.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "sagaya": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sagaya/BottomDrawer.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/sagaya_hafeez",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "BottomDrawer/Classes/**/*",
    "resource_bundles": {
        "BottomDrawer": [
            "BottomDrawer/Assets/*.xcassets"
        ]
    },
    "frameworks": [
        "UIKit",
        "MapKit"
    ]
}

Pin It on Pinterest

Share This