-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
🐞 BugSomething isn't workingSomething isn't working
Description
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x600002121090 h=--& v=--& iBox.RefreshControl:0x10802afd0.width == 0 (active)>",
"<SnapKit.LayoutConstraint:0x600002635200@RefreshControl.swift#93 UIStackView:0x10653ba40.leading == iBox.RefreshControl:0x10802afd0.leading + 20.0>",
"<SnapKit.LayoutConstraint:0x6000026356e0@RefreshControl.swift#93 UIStackView:0x10653ba40.trailing == iBox.RefreshControl:0x10802afd0.trailing - 20.0>"
)
Will attempt to recover by breaking constraint
<SnapKit.LayoutConstraint:0x6000026356e0@RefreshControl.swift#93 UIStackView:0x10653ba40.trailing == iBox.RefreshControl:0x10802afd0.trailing - 20.0>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐞 BugSomething isn't workingSomething isn't working