Skip to content

Commit fec1953

Browse files
committed
Added example movie
1 parent 19fa8e9 commit fec1953

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

README.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ You can think of it as `UITableView` but with several differences:
5454
- [Set Row Insets](#setrowinsets)
5555
- [Change ScrollStack scrolling axis](#changescrollaxis)
5656
- [Subscribe to Events](#rowevents)
57+
- [Example App](#exampleapp)
5758
- [Installation](#installation)
5859
- [System Requirements](#systemrequirements)
5960
- [Author & License](#authorlicense)
@@ -74,6 +75,8 @@ If you have a long list of rows you may experience delays.
7475

7576
So, `ScrollStackController` is generally not appropriate for screens that contain many views of the same type, all showing similar data (in these cases you should use `UITableView` or `UICollectionView`).
7677

78+
![](./Resources/demomovie.mp4)
79+
7780
[↑ Back To Top](#index)
7881

7982
<a name="howtouseit"/>
@@ -84,7 +87,7 @@ The main class of the package is `ScrollStack`, a subclass of `UIScrollView`. It
8487

8588
This is an overview of the architecture:
8689

87-
![](./architecture.png)
90+
![](./Resources/architecture.png)
8891

8992
- `ScrollStackController `: is a subclass of `UIViewController`. You would to use it and add as a child controller of your view controller. This allows you to manage any child-controllers related events for each row you will add to the stack controller.
9093
- `ScrollStack`: the view of the `ScrollStackController ` is a `ScrollStack`, a subclass of `UIScrollView` with an `UIStackView` which allows you to manage the layout of the stack. You can access to it via `scrollStack` property of the controller.
@@ -563,6 +566,8 @@ class ViewController: ScrollStackController, ScrollStackControllerDelegate {
563566
- `hidden`: row is invisible and hidden.
564567
- `offscreen`: row is not hidden but currently offscreen due to scroll position.
565568

569+
[ Back To Top](#index)
570+
566571
<a name="systemrequirements"/>
567572

568573
### System Requirements
@@ -573,6 +578,16 @@ class ViewController: ScrollStackController, ScrollStackControllerDelegate {
573578

574579
[ Back To Top](#index)
575580

581+
<a name="exampleapp"/>
582+
583+
### Example App
584+
585+
`ScrollStackController` comes with a demo application which show how easy you can create complex scrollable layoyut and some of the major features of the library.
586+
587+
You should look at it in order to implement your own layout, create dynamically sized rows and dispatch events.
588+
589+
[ Back To Top](#index)
590+
576591
<a name="installation"/>
577592

578593
### Installation
File renamed without changes.

Resources/demomovie.mp4

2.08 MB
Binary file not shown.

0 commit comments

Comments
 (0)