Awesome Open Source
Awesome Open Source

Swift 5.0 enter image description here enter image description here

OverlayController can easily pop up any custom view. It supports layout positions, optional pop-up animations and user interaction gestures and more. If you need the Objective-C version, please see here


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


  • Swift 5.0
  • iOS 10 or higher


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

pod 'OverlayController', '~> 1.0.1'


let ovc = OverlayController(view: self.publishView)
ovc.layoutPosition = .center
ovc.presentationStyle = .fade
ovc.willPresentClosure = { [unowned self] (sender) in
ovc.willDismissClosure = { [unowned self] (sender) in

Support following keyboard popup and hide

Set overlay view priority. default is OverlayLevel.normal by windowLevel


snail-z, [email protected]


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

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
swift (7,800
cocoapods (571
alert (119
drag (112
overlay (82
share (67
elastic (54
mask (49
sidebar (41
popup-window (24
actionsheet (22
sina (16