Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D Touch action leads to layout breaking constraints #13

Open
lesterrry opened this issue Jul 22, 2020 · 0 comments
Open

3D Touch action leads to layout breaking constraints #13

lesterrry opened this issue Jul 22, 2020 · 0 comments
Assignees
Labels
backburner This one will wait help wanted Extra attention is needed UX/UI Design purpose

Comments

@lesterrry
Copy link
Member

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.

@lesterrry lesterrry added help wanted Extra attention is needed UX/UI Design purpose labels Jul 22, 2020
@lesterrry lesterrry pinned this issue Jul 22, 2020
@lesterrry lesterrry added the backburner This one will wait label Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backburner This one will wait help wanted Extra attention is needed UX/UI Design purpose
Projects
None yet
Development

No branches or pull requests

2 participants