UIViewInspectable:用于在 Interface Builder 中将 cornerRadius、borderWidth 或 borderColor 设置为 IBInspectable 的 UIView 扩展

时间:2021-06-21 17:43:11
【文件属性】:
文件名称:UIViewInspectable:用于在 Interface Builder 中将 cornerRadius、borderWidth 或 borderColor 设置为 IBInspectable 的 UIView 扩展
文件大小:33KB
文件格式:ZIP
更新时间:2021-06-21 17:43:11
Objective-C UIViewInspectable 用于在 Interface Builder 中将 cornerRadius、borderWidth 或 borderColor 设置为 IBInspectable 的 UIView 扩展。 灵感来自 。 安装 通过将其添加到您的 Podfile 来通过 cocoapods 安装: pod "UIViewInspectable" 或者将UIViewInspectable.swift复制到您的项目中,以防您需要支持 iOS 7。 用法 Interface Builder 现在在 Attributes Inspector 中为每个 UIView 和派生对象显示新的可检查属性。 Corner is Circle是将角半径设置为视图高度或宽度的一半的简写。
【文件预览】:
UIViewInspectable-master
----Source()
--------Info.plist(822B)
--------UIViewInspectable.swift(1KB)
--------UIViewInspectable.h(1KB)
----LICENSE(1KB)
----README.md(733B)
----InspectableView@2x.png(29KB)
----UIViewInspectable.podspec(887B)
----.gitignore(234B)

网友评论