"Constrain to margins"とは何?

"Constrain to margins"とは何?

f:id:me-note:20180520132112p:plain 親ビューのmargin つまり、余白を考慮するかどうかの設定

AutoLayout 関連のエラー

エラーのスクリーンショット

エラーのスクリーンショット

View Need constraints for: X position or width

このエラーは必要な制約が設定していないために起こっていて、青いビューにXポジションか幅の制約が必要になります

View Need constraints for: Y position or height

上記と同様にYポジションか高さの制約が必要になります