Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating the method we swizzle to detect autolayout constraint failur…
…es. (#65) * Updating the method we swizzle to detect autolayout constraint failures. - It seems like Apple has changed the implementation of NSEngine and it no longer implements 'handleUnsatisfiableRow:usingInfeasibilityHandlingBehavior:prospectiveRowHead:mutuallyExclusiveConstraints:' (verified by calling 'instancesRespondToSelector' on the class) - As a result the swizzle we use to detect failing constraints no longer works. - Change to use UIView.engine:willBreakConstraint:dueToMutuallyExclusiveConstraints: instead - Apple uses this method to trigger Xcode's constraint error breakpoint - so this should be a lot more realiable in detection in failing constraints - Added a 'responds to selector' check - this should help us identify when the implementation changes again in the future. * Updating the assert statement to be more accurate
- Loading branch information