Sheeeeeeeeet
Sheeeeeeeeet copied to clipboard
[Constraint Issue] Sheeeeeeeeeet view encounters layout constraint violations not displayed on macOS
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'