测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最后发布 | 2017年9月 |
SwiftSwift 版本 | 4.0 |
SPM支持 SPM | ✗ |
由 superk 维护。
避免设置圆角时出现离屏渲染的 UIImageView 子类
如果您不使用上述任何一个依赖管理器,可以手动将 ZKCornerRadiusView 集成到您的项目中。
let view = ZKCornerRadiusView()
view.zk.backgroundColor = UIColor.yellow
view.zk.borderColor = UIColor.blue
view.zk.borderWidth = 4
view.zk.cornerRadius = 6
// if only want a one color image(with border maybe), use this method manually.
// view.render()
// when set image to the view, all the attributes set above will work.
view.image = UIImage.init(named: imageName)