Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPhone X support, new margin methods, new UICollectionView example #33

Merged
merged 6 commits into from
Oct 31, 2017

Conversation

lucdion
Copy link
Member

@lucdion lucdion commented Oct 31, 2017

iPhone X support, new margin methods, new UICollectionView example

  • Add new margin methods:

    • margin(_ insets: UIEdgeInsets): Set all margins using UIEdgeInsets.
      This method is particularly useful to set all margins using iOS 11 UIView.safeAreaInsets
    • margin(_ directionalInsets: NSDirectionalEdgeInsets): Set margins using NSDirectionalEdgeInsets.
      This method is particularly to set all margins using iOS 11 UIView.directionalLayoutMargins
  • Add new padding methods:

    • padding(_ insets: UIEdgeInsets): Set all paddings using UIEdgeInsets.
      This method is particularly useful using iOS 11 UIView.safeAreaInsets
    • padding(_ directionalInsets: NSDirectionalEdgeInsets): Set paddings using NSDirectionalEdgeInsets.
      This method is particularly useful to set all paddings using iOS 11 UIView.directionalLayoutMargins
  • Update all example to support iPhone X landscape orientation.

  • Add an example of UICollectionView using FlexLayout

Luc Dion added 4 commits October 31, 2017 11:14
* Add new margin methods:
  * `margin(_ insets: UIEdgeInsets)`: Set all margins using UIEdgeInsets.
     This method is particularly useful to set all margins using iOS 11 `UIView.safeAreaInsets`
  * `margin(_ directionalInsets: NSDirectionalEdgeInsets)`: Set margins using NSDirectionalEdgeInsets.
     This method is particularly to set all margins using iOS 11 `UIView.directionalLayoutMargins`

* Update all example to support iPhone X landscape orientation.

* Add an example of UICollectionView using FlexLayout
@lucdion lucdion force-pushed the add_uicollectionview_example branch from 3a7bf1f to c7857dd Compare October 31, 2017 15:22
@lucdion lucdion merged commit c98a143 into master Oct 31, 2017
@lucdion lucdion deleted the add_uicollectionview_example branch October 31, 2017 18:31
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.

1 participant