OverlayController

OverlayController easily pop your custom view and provide optional transition animation.


Keywords
actionsheet, alert, cocoapods, drag, elastic, mask, overlay, popup-window, share, sidebar, sina, swift
License
MIT
Install
pod try OverlayController

Documentation

Swift 5.0 enter image description here enter image description here

OverlayController is an implementation of a overlay effect for any view. It can be used to easily add dynamics to user interactions and popups views. If you need Objective-C version, please see here

Example

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

Requirements

  • Swift 5.0
  • iOS 10 or higher

Installation

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

pod 'OverlayController', '~> 1.0.1'

Usage

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

Author

snail-z, haozhang0770@163.com

License

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