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

[Constraint Issue] Sheeeeeeeeeet view encounters layout constraint violations not displayed on macOS #164

Open
AbleLHOne opened this issue Aug 7, 2023 · 0 comments

Comments

@AbleLHOne
Copy link

Description:
I encountered a layout constraint conflict issue while using the Sheeeeeeeeet framework. When running my application, Xcode reports the following warning:
2023-08-07 12:26:08.293491+0800 pet[98260:3138339] [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:0x6000021b3480 V:|-(>=0)-[Sheeeeeeeeet.ActionSheetStackView:0x7fcec702cee0] (active, names: '|':UIView:0x7fcec4426000 )>",
"<NSLayoutConstraint:0x6000021b3c00 V:[Sheeeeeeeeet.ActionSheetStackView:0x7fcec702cee0]-(0)-| (active, names: '|':UIView:0x7fcec4426000 )>",
"<NSLayoutConstraint:0x6000021b3cf0 Sheeeeeeeeet.ActionSheetButtonTableView:0x7fcec601c000.height == 50 (active)>",
"<NSLayoutConstraint:0x6000021ad0e0 'UISV-canvas-connection' Sheeeeeeeeet.ActionSheetStackView:0x7fcec702cee0.top == Sheeeeeeeeet.ActionSheetItemTableView:0x7fcec606a000.top (active)>",
"<NSLayoutConstraint:0x6000021ad220 'UISV-canvas-connection' V:[Sheeeeeeeeet.ActionSheetButtonTableView:0x7fcec601c000]-(0)-| (active, names: '|':Sheeeeeeeeet.ActionSheetStackView:0x7fcec702cee0 )>",
"<NSLayoutConstraint:0x6000021addb0 'UISV-spacing' V:[Sheeeeeeeeet.ActionSheetItemTableView:0x7fcec606a000]-(15)-[Sheeeeeeeeet.ActionSheetButtonTableView:0x7fcec601c000] (active)>",
"<NSLayoutConstraint:0x6000021ae2b0 'UIView-Encapsulated-Layout-Height'"
)
Issue:
When running the application, I encountered the above constraint conflict warning. I am using the Sheeeeeeeeet framework and have added ActionSheetItemTableView and ActionSheetButtonTableView to ActionSheetStackView. Despite setting constraints to control their positions and heights, constraint conflicts are still occurring.

Expected Behavior:
I expect ActionSheetItemTableView and ActionSheetButtonTableView to be properly laid out without any constraint conflicts.

Steps to Reproduce:

Create an ActionSheetStackView.
Add ActionSheetItemTableView and ActionSheetButtonTableView to the ActionSheetStackView.
Set appropriate constraints to control their positions and heights.
Actual Behavior:
When running the application, Xcode reports constraint conflicts warning and displays the above constraint information.
The version of the Sheeeeeeeeet framework I am using is '3.2.3'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant