Skip to content

Commit feccc74

Browse files
committed
Update README
1 parent a5684ae commit feccc74

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,36 @@ UICollectionView calculates size of view by AutoLayout, then that display.
2626

2727
```swift
2828
let stack = StackScrollView()
29-
stack.append(view: UIView())
29+
30+
stack.append(view: ...)
31+
32+
stack.remove(view: ..., animated: true)
33+
```
34+
35+
### APIs
36+
37+
#### StackScrollView
38+
39+
```swift
40+
func append(view: UIView)
41+
func remove(view: UIView, animated: Bool)
42+
func scroll(to view: UIView, at position: UICollectionViewScrollPosition, animated: Bool)
3043
```
3144

45+
#### StackCellType
46+
47+
StackScrollView does not required StackCellType.
48+
if `StackCell` has `StackCellType`, be easy that control StackCell.
49+
50+
```swift
51+
func scrollToSelf(animated: Bool)
52+
func scrollToSelf(at position: UICollectionViewScrollPosition, animated: Bool)
53+
func updateLayout(animated: Bool)
54+
func remove()
55+
```
56+
57+
*Demo has included this APIs usage.*
58+
3259
### Create CustomCell from Code
3360

3461
*We have to set constraints completely.*

0 commit comments

Comments
 (0)