OverlayController easily pop your custom view and provide optional transition animation. written in swift 5.0
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.
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
self.publishView.presentAnimate()
}
ovc.willDismissClosure = { [unowned self] (sender) in
self.publishView.dismissAnimate()
}
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.