Please explain what I am doing wrong with Autolayout

When the application is launched, the compiler gives out this information : (When the application is launched, the compiler gives out this information (2020-07-29 13:42:26.411510+0300 News App[1538:86650] [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:0x60400028c800 UILabel:0x7f8c114113e0'News App'.top >= UILayoutGuide:0x6000001bfaa0'TitleView(0x7f8c11512ef0)'.top   (active)>",

    "<NSLayoutConstraint:0x60400028c710 UILabel:0x7f8c114113e0'News App'.firstBaseline == UILayoutGuide:0x6000001bfaa0'TitleView(0x7f8c11512ef0)'.top + 28   (active)>"

)



Will attempt to recover by breaking constraint 

<NSLayoutConstraint:0x60400028c800 UILabel:0x7f8c114113e0'News App'.top >= UILayoutGuide:0x6000001bfaa0'TitleView(0x7f8c11512ef0)'.top   (active)>



Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.), I cannot figure out what I am doing wrong, I have arranged all the constraints
referring to the project :https://github.com/dmitrySachkov/NewsApp), I cannot figure out what I am doing wrong, I have arranged all the constraints
referring to the project : https://github.com/dmitrySachkov/NewsApp

Post not yet marked as solved Up vote post of domont Down vote post of domont
205 views