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:
- iOS 11.0+
- Xcode 11.0+
- Swift 5.0+
To integrate DraggableOverlay into your Xcode project with CocoaPods, specify it in your Podfile:
pod 'Shakuro.DraggableOverlay'Then, run the following command:
$ pod installIf you prefer not to use CocoaPods, you can integrate Shakuro.DraggableOverlay simply by copying it to your project.
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)
Shakuro.DraggableOverlay is released under the MIT license. See LICENSE for details.
Explore our expertise in Native Mobile Development and iOS Development.
If you need professional assistance with your mobile or web project, feel free to contact our team




