Skip to content

3D Touch action leads to layout breaking constraints #13

Open
@lesterrry

Description

@lesterrry

Whenever I hold any cell, I get the following in the console:

2020-07-22 20:59:53.389358+0300 Jay[45885:4212931] [LayoutConstraints] 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:0x6000032a3f70 h=--& v=--& UIInterfaceActionGroupView:0x7f9d985238d0.height == 0   (active)>",
    "<NSLayoutConstraint:0x6000032daf30 groupView.actionsSequence....height >= 66   (active, names: groupView.actionsSequence...:0x7f9d99028800 )>",
    "<NSLayoutConstraint:0x6000032d9ea0 UIInterfaceActionGroupView:0x7f9d985238d0.top == _UIContentConstraintsLayoutGuide:0x7f9d9850e700''.top   (active)>",
    "<NSLayoutConstraint:0x6000032d9e50 V:[_UIContentConstraintsLayoutGuide:0x7f9d9850e700'']-(0)-|   (active, names: '|':UIInterfaceActionGroupView:0x7f9d985238d0 )>",
    "<NSLayoutConstraint:0x6000032d9900 groupView.actionsSequence....top == _UIContentConstraintsLayoutGuide:0x7f9d9850e700''.top   (active, names: groupView.actionsSequence...:0x7f9d99028800 )>",
    "<NSLayoutConstraint:0x6000032d93b0 groupView.actionsSequence....bottom == _UIContentConstraintsLayoutGuide:0x7f9d9850e700''.bottom   (active, names: groupView.actionsSequence...:0x7f9d99028800 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x6000032daf30 groupView.actionsSequence....height >= 66   (active, names: groupView.actionsSequence...:0x7f9d99028800 )>

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.

It happens with both reminder & habit cell, so I don't think there's actually something wrong with the constraints.

Metadata

Metadata

Assignees

Labels

UX/UIDesign purposebackburnerThis one will waithelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions