Skip to content

fix: refresh controller layout #240

@chanhihi

Description

@chanhihi
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions