Skip to content

Commit 8cc302f

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master'
2 parents e0385c5 + b4a6bda commit 8cc302f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ How to define layout in JSON:
3939
```
4040
How to use it in code:
4141
```swift
42+
import JSONLayout
43+
4244
class ViewController: UIViewController {
4345

4446
override func viewDidLoad() {
@@ -54,8 +56,9 @@ class ViewController: UIViewController {
5456

5557
}
5658
```
59+
![alt JSONLayout](https://github.com/maxvol/JSONLayout/blob/master/JSONLayout.jpg?raw=true)
5760

5861
Carthage setup:
5962
```
60-
github "maxvol/JSONLayout" ~> 0.0.1
63+
github "maxvol/JSONLayout" ~> 0.0.2
6164
```

UIView+findViewByID.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import UIKit
1010

1111
extension UIView {
12-
func findViewByID(_ id: String) -> UIView? {
12+
public func findViewByID(_ id: String) -> UIView? {
1313
return self.viewWithTag(id.hash)
1414
}
1515
}

0 commit comments

Comments
 (0)