Latest 0.0.3
Homepage https://github.com/liuyes/UIViewExt-Swift
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

UIViewExt的Swift版本

使用与OC版的UIViewExt一样简单:

self.x  == self.frame.origin.x
self.y  == self.frame.origin.y
self.width == self.frame.size.width
self.height == self.frame.size.height
self.top
self.bottom
self.left
self.right
...

加入工程方法:

1.直接下载UIViewExt.swift放入工程
2.使用CocoaPods管理依赖,在Podfile中加入
pod 'UIViewExt-Swift'
任意swift文件中import UIViewExt_Swift即可

方法暂时没有扩展,有什么想法给我留言吧:)

Latest podspec

{
    "name": "UIViewExt-Swift",
    "version": "0.0.3",
    "summary": "swift version of the UIViewExt",
    "description": "To simplify the use of UIView, swift version of the UIViewExt.n",
    "homepage": "https://github.com/liuyes/UIViewExt-Swift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u91c7u98deu626c": "[email protected]"
    },
    "source": {
        "git": "https://github.com/liuyes/UIViewExt-Swift.git",
        "tag": "0.0.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "UIViewExt.swift",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This