Skip to content

Commit e0c0ded

Browse files
author
Ivan Vorobei
committed
Update README.md
1 parent 8e16d64 commit e0c0ded

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
Add the following line to your `Podfile`:
3030

31-
```
31+
```ruby
3232
pod 'InAppViewDebugger', '~> 1.0.1'
3333
```
3434

@@ -124,7 +124,11 @@ Colors, fonts, and other attributes for both the snapshot view and the hierarchy
124124

125125
The current implementation only supports `UIView` hierarchies, but this can easily be extended to support other UI frameworks by conforming to the [`Element`](blob/master/InAppViewDebugger/Element.swift) protocol. See [`ViewElement`](blob/master/InAppViewDebugger/ViewElement.swift) to see what an example implementation looks like — by providing a the frame, a snapshot image, and a few other pieces of information, all of the features described above will work for your own framework.
126126

127-
A [`Snapshot`](blob/master/InAppViewDebugger/Snapshot.swift) instance represents a recursive snapshot of the *current state* of a UI element hierarchy, and is constructed using an `Element`. The snapshot can then be passed to `InAppViewDebugger.presentWithSnapshot(:rootViewController:configuration:completion:` to show the view debugger.
127+
A [`Snapshot`](blob/master/InAppViewDebugger/Snapshot.swift) instance represents a recursive snapshot of the *current state* of a UI element hierarchy, and is constructed using an `Element`. The snapshot can then be passed to
128+
```swift
129+
InAppViewDebugger.presentWithSnapshot(:rootViewController:configuration:completion:
130+
```
131+
to show the view debugger.
128132

129133
## Credits
130134

0 commit comments

Comments
 (0)