Giter Club home page Giter Club logo

gyside's Introduction

GYSide安装

CocoaPods

  • 在 Podfile 中添加 pod 'GYSide'
  • 执行 pod setup 更新本地pod库
  • 执行 pod installpod update 安装

效果

使用

  • 显示侧边栏
let vc = LeftViewController.init()
gy_showSide(configuration: { (config) in
    config.animationType = .zoom // 侧边来出来的动画方式
    config.timeInterval = 0.3 // 执行动画的时长 默认0.3
    config.direction = .left // 侧边来出来的的方向 默认从左边出来
    config.maskAlpha = 0.5 // 遮罩视图的透明度 默认0.5
    config.sideRelative = 0.7 // 侧边栏相对屏幕宽度比例 默认0.7
    config.zoomOffsetRelative = 0.5 // 缩放模式时 缩放控制器的view偏移相对屏幕宽度比例 默认0.5
    config.zoomRelative = 0.7 // 缩放模式时缩放的比例 默认0.7
}, viewController: vc)
  • 从侧边栏push控制器
 self.gy_sidePushViewController(viewController: UIViewController())
  • 从侧边栏present控制器
 self.gy_sidePresentViewController(viewController: UIViewController())

gyside's People

Contributors

yuan-gao avatar kunkunbobo avatar

Watchers

 avatar James Cloos 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.