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'
方法暂时没有扩展,有什么想法给我留言吧:)