Skip to content

Commit 10633df

Browse files
authored
Add syntax highlighting to README
1 parent 930f8b0 commit 10633df

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ ViewDeck supports a left and a right side view controller. Each of these can be
8888

8989
You can also switch view controllers in mid flight. Just assign a view controller to the appropriate property and the view deck controller will do the rest:
9090

91-
// prepare view controllers
92-
UIViewController* newController = [[UIViewController alloc] init];
93-
self.viewDeckController.rightController = newController;
91+
```objc
92+
// prepare view controllers
93+
UIViewController* newController = [[UIViewController alloc] init];
94+
self.viewDeckController.rightController = newController;
95+
```
9496

9597
You can also use this to remove a side controller by just setting it to `nil`.
9698

@@ -162,4 +164,4 @@ I would appreciate it to mention the use of this code somewhere if you use it in
162164
[image-6]: https://img.shields.io/cocoapods/l/AFNetworking.svg?style=flat-square
163165
[image-7]: https://img.shields.io/cocoapods/p/ViewDeck.svg?style=flat-square
164166
[image-8]: https://cldup.com/PR00jqJzsS.png
165-
[image-9]: https://cldup.com/8bIJ_PgdIP.png
167+
[image-9]: https://cldup.com/8bIJ_PgdIP.png

0 commit comments

Comments
 (0)