CarbonKit
CarbonKit copied to clipboard
Breaking constraint in CarbonSwipeRefresh
Width and Height constraint for self is breaking with following log:
[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.
(
"<NSLayoutConstraint:0x600000881e00 CarbonSwipeRefresh:0x7fd9835c5bf0.width == 40 (active)>",
"<NSLayoutConstraint:0x600000881b80 '_UITemporaryLayoutWidth' CarbonSwipeRefresh:0x7fd9835c5bf0.width == 0 (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600000881e00 CarbonSwipeRefresh:0x7fd9835c5bf0.width == 40 (active)>
If I reduce priority for these constraints (ie. 999) it works fine without any constraint warning
It's not breaking if I don't use setMarginTop(0)
without reducing constraint priority