Touchwonders/Transition

iPhone X Safe Margins

mkchoi212 opened this issue · 0 comments

After clicking on a cell, the expansion animation seems like it's not taking the safety margins into account.

Before Autolayout Breaks Constraints

simulator screen shot - iphone x - 2018-10-14 at 22 12 54

After Autolayout Breaks Constraints

simulator screen shot - iphone x - 2018-10-14 at 22 12 58

Here is the error log for your reference :D

2018-10-14 22:11:19.430659-0500 Transition_Example[48438:2420401] [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:0x600002cb21c0 Transition_Example.CollectionViewCell:0x7fd929c67b50.height == 399.967   (active)>",
    "<NSLayoutConstraint:0x600002cb2580 'UIView-Encapsulated-Layout-Height' Transition_Example.CollectionViewCell:0x7fd929c67b50.height == 400   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600002cb2580 'UIView-Encapsulated-Layout-Height' Transition_Example.CollectionViewCell:0x7fd929c67b50.height == 400   (active)>

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.
2018-10-14 22:11:19.488227-0500 Transition_Example[48438:2420401] [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:0x600002cb21c0 Transition_Example.CollectionViewCell:0x7fd929c67b50.height == 399.967   (active)>",
    "<NSLayoutConstraint:0x600002cb2580 'UIView-Encapsulated-Layout-Height' Transition_Example.CollectionViewCell:0x7fd929c67b50.height == 400   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600002cb2580 'UIView-Encapsulated-Layout-Height' Transition_Example.CollectionViewCell:0x7fd929c67b50.height == 400   (active)>

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.