Giter Site home page Giter Site logo

trendingtechnology / dtoverlaycontroller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tungvoduc/dtoverlaycontroller

0.0 2.0 0.0 14.2 MB

A customizable and easy-to-use overlay view controller container.

License: MIT License

Ruby 13.91% Swift 78.77% Objective-C 7.32%

dtoverlaycontroller's Introduction

DTOverlayController

CI Status Version License Platform

Screenshots

|||

Example

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

Usage

To present a view controller inside an over lay controller, simply do in your view controller:

let overlayController = DTOverlayController(viewController: viewController)
present(overlayController, animated: true, completion: nil)

There are other properties that you can use to customize your over lay controller. These are some of them:

let overlayController = DTOverlayController(viewController: viewController)

// View controller is automatically dismissed when you release your finger
overlayController.dismissableProgress = 0.4

// Enable/disable pan gesture
overlayController.isPanGestureEnabled = false

// Update top-left and top-right corner radius
overlayController.overlayViewCornerRadius = 10

// Control the height of the view controller
overlayController.overlayHeight = .dynamic(0.8) // 80% height of parent controller
overlayController.overlayHeight = .static(300) // fixed 300-point height

You can check more of these configurations in the library. DTOverlayController will be further developed and new features will be coming in next releases. Feel free to contribute or suggest improvements by creating issues.

Requirements

  • iOS 9.0+

Installation

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

pod 'DTOverlayController'

Author

tungvoduc, [email protected]

License

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

dtoverlaycontroller's People

Contributors

tungvoduc avatar

Watchers

 avatar  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.