Skip to content

Commit 928760f

Browse files
author
Gürhan Yerlikaya
committed
updated readme file
1 parent 6d3863b commit 928760f

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,41 @@ To run the example project, clone the repo, and run `pod install` from the Examp
2828
var scrollable = ScrollableStackView(frame: view.frame)
2929
view.addSubview(scrollable)
3030

31-
// add your views with addArrangedSubview(your_view)
31+
// add your views with
3232
let rectangle = UIView(frame: CGRect(x: 0, y: 0, width: 100, height: 55))
33-
rectangle.backgroundColor = UIColor.red
33+
rectangle.backgroundColor = UIColor.blue
3434
scrollable.stackView.addArrangedSubview(rectangle)
35+
// ...
3536
```
3637

3738
### Sample Code (Objective-C)
3839

3940
```objective-c
40-
41+
ScrollableStackView *scrollable = [[ScrollableStackView alloc] initWithFrame:self.view.frame];
42+
scrollable.stackView.distribution = UIStackViewDistributionFillProportionally;
43+
scrollable.stackView.alignment = UIStackViewAlignmentCenter;
44+
scrollable.stackView.axis = UILayoutConstraintAxisVertical;
45+
[self.view addSubview:scrollable];
46+
47+
UIView *rectangle = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 55)];
48+
[rectangle setBackgroundColor:[UIColor blueColor]];
49+
50+
// add your views with
51+
[scrollable.stackView addArrangedSubview:rectangle];
52+
// ...
4153
```
4254
43-
44-
## Wish List
45-
46-
## Requirements
55+
<!--## Code Snippets-->
56+
<!--## Wish List -->
57+
<!--## Requirements-->
4758
4859
## Installation
4960
5061
ScrollableStackView is available through [CocoaPods](http://cocoapods.org). To install
5162
it, simply add the following line to your Podfile:
5263
5364
```ruby
65+
platform :ios, '9.0'
5466
pod "ScrollableStackView"
5567
```
5668

0 commit comments

Comments
 (0)