GithubHelp home page GithubHelp logo

popupcontroller's Introduction

PopupController

view或者viewcontroller,只要遵循PopupProtocol代理,调用指定方法便可被弹出。弹出动画支持自定义

使用方法

  1. 被弹出的ViewController需要遵循 PopupProtocol 代理
class TestViewController: UIViewController, PopupProtocol 
  1. 在需要弹出的地方调用show方法
let testVC = TestViewController()
PopupController.show(testVC)
  1. 需要移除的时候调用dismiss方法
PopupController.dismiss(self)
  1. 更多使用方法见demo

其他

支持 Swift Package Manager 导入

TODO

  1. 添加cocoapods支持
  2. 默认动画中添加fade支持
  3. 在当前目录中添加Demo

popupcontroller's People

Contributors

zzqlplq avatar

Watchers

 avatar

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.