创建了一个自定义view
class ACRCircleView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
configure()
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
configure()
}
}
我把它放在了storyboard
,现在每次我进入storyboard
xcode 时它都会不断地重建项目,这会干扰工作,因为它开始变慢。是否有可能以某种方式表明为了这个类不需要重建项目?它的 xcode 可能无法呈现。有一个以编程方式排列此视图的选项,但我想找到更多选项(如果存在)
在菜单栏中,选择
Editor
并取消选中Automatically Refresh Designable Views
好吧,最好的选择是构建 UI 代码并使用预览。