Skip to content

Conversation

@FabriBertani
Copy link
Contributor

@FabriBertani FabriBertani commented Aug 4, 2018

What kind of change does this PR introduce?

This is a feature

💥 Does this PR introduce a breaking change?

No

📝 Links to relevant issues/docs

#46

⤵️ What is the current behavior?

No support for View.SafeAreaLayoutGuide

🆕 What is the new behavior?

Added support to iPhone X and iOS 11 SafeArea on AdvanceFluentLayoutExtesions: AtTopOfWithSafeArea, AtLeftOfWithSafeArea, AtRightOfWithSafeArea, AtBottomOfWithSafeArea. Also this could be added to the original AtTopOf, AtLeftOf, etc, instead of the new ones.

Copy link
Member

@gshackles gshackles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Could you add in a quick page into the sample app that demonstrates this in use?

Edited info.plist: upgraded MinimumOSVersion from 7.0 to 8.0
Added LaunchScreen storyboard to allow app run full screen on iPhone X.
@FabriBertani
Copy link
Contributor Author

@gshackles I've added ViewWithSafeArea sample to quick page, also update QuickLayout MinimumOSVersion from 7.0 to 8.0 and added LaunchScreen storyboard to avoid iPhone X not using entire screen issue.

Copy link
Contributor

@fedemkr fedemkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to use Minus for the margin in AtRightOfWithSafeArea and AtBottomOfWithSafeArea

@gshackles
Copy link
Member

gshackles commented Oct 30, 2018

Sorry for the delay, and thanks for contributing this! Going to tweak the method names slightly, but I'll do that separately and pull this in now :shipit: 🚀

@gshackles gshackles merged commit 9968b17 into FluentLayout:master Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants