GithubHelp home page GithubHelp logo

gus-bn / rgbottomsheet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riteshhgupta/rgbottomsheet

0.0 0.0 0.0 1.32 MB

RGBottomSheet is an iOS UI component which presents a dismissible view from the bottom of the screen!

License: MIT License

Ruby 4.45% Swift 95.55%

rgbottomsheet's Introduction

#RGBottomSheet

RGBottomSheet is an iOS UI component which presents a dismissible view from the bottom of the screen. It can hold any Custom UIView so the use cases are endless. Its designed to abstract out the logic of displaying such bottom views and let the developer just focus on its custom view which they need to present. It offers translucent, blur or clear overlays!

Made in Swift 3.0 ๐Ÿš€

##Installation To integrate RGBottomSheet into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'RGBottomSheet', '~> 1.0'

##Getting Started

import RGBottomSheet

let config = RGBottomSheetConfiguration(
	showBlur: true
)
	
let sheet = RGBottomSheet(
	withContentView: myCustomBottomView,
	configuration: config
)

sheet.show()

Customisation

RGBottomSheet provides a simple interface to initialise as well as customise it. Content view used in the initialisation is the custom bottom view which you want to present from bottom. It has built in translucent & blurry background which you can customise using RGBottomSheetConfiguration class e.g.

- overlayTintColor
- blurTintColor
- blurStyle
- showOverlay
- showBlur

You can choose to show/hide either translucent or blurry or both views to meet your design needs. If you still don't feel satisfied then you can simply pass your custom translucent/blurry view which this library will overlay on the screen behind your content view.

##Callbacks RGBottomSheet provides some handy callbacks which you can use to perform your custom animations along with show/hide of your bottom view!

- willShow { }
- didShow { }
- willHide { }
- didHide { }

Contributing

Open an issue or send pull request here.

Licence

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

rgbottomsheet's People

Contributors

riteshhgupta avatar

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.