Coder Social home page Coder Social logo

shakurocom / draggableoverlay Goto Github PK

View Code? Open in Web Editor NEW
19.0 1.0 3.0 11.1 MB

License: MIT License

Swift 97.56% Objective-C 0.74% Ruby 1.70%
component drag-and-drop draggable draggable-elements draggable-panel draggableview ios overlay swift uicomponent

draggableoverlay's Introduction

Shakuro Draggable Overlay

DraggableOverlay

Version Platform License MIT

A DraggableOverlay is a Swift library - an overlay that dynamically reveals or hides the content inside it. It can be dragged up and down to stick to predefined anchors. Whenever a drag gesture ends, the overlay motion will continue until it reaches one of its anchors. DraggableOverlay has various configuration options.

DraggableOverlay example with default options:

DraggableOverlay example with enabled shadow (red color) and container shadow (green color), customized draggable container height (30 px):

DraggableOverlay example with custom handle corner and custom handle container corner radius, customized handle color (yellow) and changed top inset:

DraggableOverlay example with bounce animation:

Requirements

  • iOS 11.0+
  • Xcode 11.0+
  • Swift 5.0+

Installation

CocoaPods

To integrate DraggableOverlay into your Xcode project with CocoaPods, specify it in your Podfile:

pod 'Shakuro.DraggableOverlay'

Then, run the following command:

$ pod install

Manually

If you prefer not to use CocoaPods, you can integrate Shakuro.DraggableOverlay simply by copying it to your project.

Usage

Just initilize DraggableDetailsOverlayViewController with your nested viewcontroller and delegate. Nested viewcontroller must adopt the DraggableDetailsOverlayViewControllerDelegate and DraggableDetailsOverlayNestedInterface protocols. The delegate allows to respond to scrolling events. Have a look at the DraggableOverlayExample (perform pod install before usage)

License

Shakuro.DraggableOverlay is released under the MIT license. See LICENSE for details.

Give it a try and reach us

Star this tool if you like it, it will help us grow and add new useful things. Feel free to reach out and hire our team to develop a mobile or web project for you.

draggableoverlay's People

Contributors

apopov1988 avatar eugendevios avatar sergejlaschukmetronom avatar spopovshakuro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.