Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9.1 Warns "Language directional layout margins before iOS 11.0"

I noticed an Xcode warning that said :

"Language directional layout margins before iOS 11.0"

Even this question left unanswered in Apple developer forum thead.

I have used storyboard & warning doesn't lead to any specific view.

What is the cause or any solution ?

like image 805
byJeevan Avatar asked Nov 30 '17 11:11

byJeevan


1 Answers

I am able to figure out the cause for the warning.

In Storyboard -> Size Inspector, set Layout Margin to Default. Which was Language Directional before.

Size_inspectory_screenshot

As per documentation, for the root view of a view controller, UIKit enforces a set of minimum layout margins to ensure that content is displayed correctly. When the values in the Language Directional property are less than the minimum values, UIKit uses the minimum values instead.

like image 187
byJeevan Avatar answered Oct 22 '22 02:10

byJeevan