Skip to content
A customizable and easy-to-use overlay view controller container.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example Add new DTLayOverHeight enum case Jul 1, 2019
Screenshots Initial commit Jun 18, 2019
setup Initial commit Jun 18, 2019
templates Initial commit Jun 18, 2019
.gitignore Initial commit Jun 18, 2019
.travis.yml Initial commit Jun 18, 2019 Initial commit Jun 18, 2019
DTOverlayController.podspec Bump pod version Jul 2, 2019
LICENSE Initial commit Jun 18, 2019
Package.swift Update Package file Jul 4, 2019
_Pods.xcodeproj Initial commit Jun 18, 2019


CI Status Version License Platform




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


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
overlayController.overlayHeight = .inset(50) // fixed 50-point inset from top

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.


  • iOS 9.0+



Add the following line to your Podfile:

pod 'DTOverlayController'

Swift package manager

DTOverlayController is available for SPM from version 1.0.2. Add the following to the dependencies of your Package.swift:

.package(url: "", from: "1.0.x")


Tung Vo,


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

Feedbacks & requests

  • Open an issue if you find a bug, make a proposal or simply need some help.
  • You can also contact me via email.
You can’t perform that action at this time.