New margin and padding methods, UICollectionView example, iPhone X examples support
-
Add new margin methods:
margin(_ insets: UIEdgeInsets): Set all margins using UIEdgeInsets.
This method is particularly useful to set all margins using iOS 11UIView.safeAreaInsetsmargin(_ directionalInsets: NSDirectionalEdgeInsets): Set margins using NSDirectionalEdgeInsets.
This method is particularly to set all margins using iOS 11UIView.directionalLayoutMargins
-
Add new padding methods:
padding(_ insets: UIEdgeInsets): Set all paddings using UIEdgeInsets.
This method is particularly useful using iOS 11UIView.safeAreaInsetspadding(_ directionalInsets: NSDirectionalEdgeInsets): Set paddings using NSDirectionalEdgeInsets.
This method is particularly useful to set all paddings using iOS 11UIView.directionalLayoutMargins
-
Update all examples to support iPhone X landscape orientation.
-
Add an example of UICollectionView using FlexLayout