Skip to content

Commit fbc81da

Browse files
committed
Update document and comments of gap
1 parent 7196cb1 commit fbc81da

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,20 @@ This property takes the same values as the width and height properties, and spec
679679

680680
<br>
681681

682+
### gap
683+
- Applies to: `flex containers`
684+
- CSS name: `gap`
685+
686+
**Method:**
687+
688+
* **`setGap(_ gutter: Gutter, _value: CGFloat)`**
689+
This property set distance between rows and columns.
690+
691+
* **`getGap(_ gutter: Gutter)`**
692+
This property return setted value through `setGap(_ gutter: Gutter, _value: CGFloat)`
693+
694+
<br/>
695+
682696
### isIncludedInLayout()
683697
- Applies to: `flex items`
684698

Sources/Swift/FlexLayout.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,10 @@ public final class Flex {
12181218
//
12191219

12201220
/**
1221-
Get paddings between views.
1221+
Get setted value through func `setGap(_ gutter: Gutter, _ value: CGFloat)`.
1222+
1223+
- Parameter gutter: directions
1224+
- Returns: distance
12221225
*/
12231226
@discardableResult
12241227
public func getGap(_ gutter: Gutter) -> CGFloat {
@@ -1230,7 +1233,12 @@ public final class Flex {
12301233
}
12311234

12321235
/**
1233-
Set paddings between views.
1236+
Set distance between rows and columns.
1237+
1238+
- Parameters:
1239+
- gutter: directions
1240+
- value: distance
1241+
- Returns: flex interface
12341242
*/
12351243
@discardableResult
12361244
public func setGap(_ gutter: Gutter, _ value: CGFloat) -> Flex {

0 commit comments

Comments
 (0)