intuit/CardParts

CardPartTableViewCardPartsCell has Constraint Issues

juliusbtesh opened this issue · 2 comments

I tried using the sample code from here to form a custom table view cell and I am getting a lot of errors like this

[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:0x6000038148c0 H:[CardParts.CardPartTextView:0x7fc4b958e0c0]-(-13)-| (active, names: '|':UIStackView:0x7fc4b958e620 )>", "<NSLayoutConstraint:0x600003810c80 'UISV-canvas-connection' H:[_UILayoutSpacer:0x6000024e5fe0'UISV-alignment-spanner']-(0)-| (active, names: '|':UIStackView:0x7fc4b958e620 )>", "<NSLayoutConstraint:0x600003810aa0 'UISV-spanning-boundary' _UILayoutSpacer:0x6000024e5fe0'UISV-alignment-spanner'.trailing >= CardParts.CardPartTextView:0x7fc4b958e0c0.trailing (active)>" )

It seems to be related to whenever trying to add the custom card parts in the cell (setupCardParts)

@juliusbtesh can you paste ur code snippet which helps us to debug the issue quicker.

@juliusbtesh Please let us know if you are still having this problem.