Latest 0.0.3
Homepage https://github.com/yuan-gao/GYSide
License MIT
Platforms ios 8.0
Frameworks UIKit, Foundation
Authors

GYSide安装

CocoaPods

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

效果

GYSide

使用

  • 显示侧边栏
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())

Latest podspec

{
    "name": "GYSide",
    "version": "0.0.3",
    "summary": "A swift viewController extension .",
    "description": "u4e00u4e2aswiftu7248u7684u8ba9u63a7u5236u5668u5177u6709u4ee5u4fa7u9762u5e73u79fbu6216u8005u7f29u653eu5c55u793au83dcu5355u63a7u5236u5668u7684u6269u5c55u5e93,u83dcu5355u63a7u5236u5668u5728u9690u85cfu7684u65f6u5019u4f1au9500u6bc1,u4e0du4f1au5e38u9a7bu5728u5185u5b58",
    "homepage": "https://github.com/yuan-gao/GYSide",
    "license": "MIT",
    "authors": {
        "gaoyuan": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/yuan-gao/GYSide.git",
        "tag": "0.0.3"
    },
    "source_files": "Classes/*.swift",
    "frameworks": [
        "UIKit",
        "Foundation"
    ]
}

Pin It on Pinterest

Share This