Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiki270 authored Jun 1, 2018
1 parent dcacff6 commit 00fd11e
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,29 +119,24 @@ gridView.config.automaticVerticalSizing = true
## Positioning

Available paddings are:
```swift
/// Element padding
public enum Padding {

/// None
case none

/// Top
case top(CGFloat)

/// Left
case left(CGFloat)

/// Right
case right(CGFloat)

/// Sides (left, right)
case horizontal(left: CGFloat, right: CGFloat)

/// Full (top, left, right, bottom)
case full(top: CGFloat, left: CGFloat, right: CGFloat)

}
```swift
/// None
.none

/// Top
.top(CGFloat)

/// Left
.left(CGFloat)

/// Right
.right(CGFloat)

/// Sides (left, right)
.horizontal(left: CGFloat, right: CGFloat)

/// Full (top, left, right, bottom)
.full(top: CGFloat, left: CGFloat, right: CGFloat)
```

For vertical positioning you set a pixel value directly (`Int` or `Float`, later will be converted to `.exactly(fromTop: CGFloat)`) or use one of the following values:
Expand Down

0 comments on commit 00fd11e

Please sign in to comment.