Reputation: 4838
This is in relation to this question, which didn't help me solve my problem, also I checked this ~/Library/Logs/DiagnosticReports
and got IBDesignablesAgentCocoaTouch_*.crash
file, On checking it shows this
At present my storyboard looks like this
I tried deleting derived data, restarted Xcode, but didn't solve.
OS I use is macOS high Sierra
I have noted now whenever I switch from storyboard to another file or change device in storyboard, Xcode becomes (Not Responding), then I will have to Force Quit and restart Xcode again.
Edit : I use this code for status bar appearance
UIApplication.shared().statusBarStyle = .lightContent
UIApplication.shared() .isStatusBarHidden = false
And for @IBDesignable
extension UIView {
class func loadNib<T: UIView>(_ viewType: T.Type) -> T {
let className = String.className(viewType)
return Bundle(for: viewType).loadNibNamed(className, owner: nil, options: nil).first as! T
}
class func loadNib() -> Self {
return loadNib(self)
}
}
@IBDesignable extension UIView {
@IBInspectable var borderColor:UIColor? {
set {
layer.borderColor = newValue!.cgColor
}
get {
if let color = layer.borderColor {
return UIColor(cgColor:color)
}
else {
return nil
}
}
}
@IBInspectable var borderWidth:CGFloat {
set {
layer.borderWidth = newValue
}
get {
return layer.borderWidth
}
}
@IBInspectable var cornerRadius:CGFloat {
set {
layer.cornerRadius = newValue
clipsToBounds = newValue > 0
}
get {
return layer.cornerRadius
}
}
}
Any ideas?
Upvotes: 3
Views: 1098
Reputation: 1376
Upvotes: 2
Reputation: 3395
Try to change device in storyboard, hope it will be shown again. I had faced the same issue before. I switched to another device and it was appeared as before, then i switch back to iPhone 8.
Your crash has generated due to, most probable you have deleted iOS DeviceSupport
and iOS Device Logs
, it will be fine, just close app and xcode, turn off the system completely and try again. Hope it may fix your crash.
Upvotes: 1
Reputation: 3580
Close and Restart your xcode it will work fine. if issue will be there then restart the mac.
Note Always split your storyboard after max 10 controllers in it. Create new storyboards and link them
Upvotes: -1
Reputation: 247
To remove the blue lines,
In Xcode, Go to Editor > Canvas > Show Bounds Rectangles
This will hide the blue lines
Upvotes: -1