lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
246 stars 17 forks source link

35687039: Please add option for 'safe area' in Auto Layout visual layout language #18952

Open openradar-mirror opened 6 years ago

openradar-mirror commented 6 years ago

Description

Area: UIKit

It is difficult to express simple auto layout options in the visual layout language when using the safe area.

Possibly add a layout option that treats the vertical bar as the safe area instead of the superview. So "H:|[myView]|" and "V:|[myView]|" with a NSUsesSafeArea layout option would lay the view out in relation to the safe area and not the superview.

Or possibly introduce a new character instead of the vertical bar that means 'safe area' instead of superview. Maybe an 'X'? "X[myView]X"

Of the two suggestions, I think a layout option would probably work better, tweaking the meaning of the vertical bar.

- Product Version: 11.0 Created: 2017-11-25T16:27:44.580740 Originated: 2017-11-25T00:00:00 Open Radar Link: http://www.openradar.me/35687039

openradar-mirror commented 6 years ago

Modified: 2017-12-04T16:29:31.286890