GithubHelp home page GithubHelp logo

snail-z / overlaycontroller Goto Github PK

View Code? Open in Web Editor NEW
122.0 8.0 15.0 6.26 MB

OverlayController easily pop your custom view and provide optional transition animation. written in swift 5.0

License: MIT License

Swift 99.38% Ruby 0.62%
swift overlay popup-window sina sidebar share mask elastic alert actionsheet

overlaycontroller's Introduction

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

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, [email protected]

License

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

overlaycontroller's People

Contributors

snail-z avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

overlaycontroller's Issues

有2个小问题

问题1、
通过pod添加的话,OverlayController初始化不了,原因是其权限不是public

问题2、
点击弹出的item时,并没有触发delegate方法。(如点击最后一个sina)

Error in Swift 4

#selector(overlayTapped(:)) & #selector(handlePan(:)) throwing error in swift 4. I was using it as cocoapod earlier but had to change manual due to it. Please fix it .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.