Skip to content

Commit e79fbf5

Browse files
committed
Update README.md
1 parent 69ab435 commit e79fbf5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,22 @@ Grid view ready !
2525

2626
now you can add it `ReorderableView` instances
2727

28-
let itemView = ReorderableView (x: 0, y: 0, w: 200, h: 250)
28+
let itemView = ReorderableView (x: 0, y: 0, w: 180, h: 250)
2929
...
3030
gridView?.addReorderableView(itemView)
3131

32+
// or
33+
let pos = GridPosition (x: 0, y: 1)
34+
gridView?addReorderableView (itemView, gridPosition: pos)
35+
36+
3237

3338
or remove them
3439

3540
gridView?.removeReorderableViewAtGridPosition(GridPosition (x: 0, y: 0))
3641

42+
// or
43+
gridView?.removeReorderableView (itemView)
3744

3845

3946
> **Design Tip**

0 commit comments

Comments
 (0)