Skip to content

Commit 50beb7a

Browse files
authored
Merge pull request #68 from richardPFisk/master
Update to README.md to be Github-markdown compatible
2 parents 891bc13 + dc9874b commit 50beb7a

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ mainStore.dispatch(
1313
)
1414
```
1515

16-
#About ReSwiftRouter
16+
# About ReSwiftRouter
1717

1818
**ReSwiftRouter is still under development and the API is neither complete nor stable at this point.**
1919

2020
When building apps with ReSwift you should aim to cause **all** state changes through actions - this includes changes to the navigation state.
2121

2222
This requires to store the current navigation state within the app state and to use actions to trigger changes to that state - both is provided ReSwiftRouter.
2323

24-
#Installation
24+
# Installation
2525

2626

27-
##CocoaPods
27+
## CocoaPods
2828

2929
You can install ReSwiftRouter via CocoaPods by adding it to your `Podfile`:
3030

@@ -35,16 +35,16 @@ You can install ReSwiftRouter via CocoaPods by adding it to your `Podfile`:
3535

3636
pod 'ReSwift'
3737
pod 'ReSwiftRouter'
38-
38+
3939
And run `pod install`.
4040

41-
##Carthage
41+
## Carthage
4242

4343
You can install ReSwiftRouter via [Carthage]() by adding the following line to your Cartfile:
4444

4545
github "ReSwift/ReSwiftRouter"
4646

47-
#Configuration
47+
# Configuration
4848

4949
Extend your app state to include the navigation state:
5050

@@ -67,7 +67,7 @@ router = Router(store: mainStore, rootRoutable: RootRoutable(routable: rootViewC
6767

6868
We'll discuss `Routable` in the next main section.
6969

70-
##Calling the Navigation Reducer
70+
## Calling the Navigation Reducer
7171

7272
The `NavigationReducer` is provided as part of `ReSwiftRouter`. You need to call it from within your top-level reducer. Here's a simple example from the specs:
7373

@@ -82,7 +82,7 @@ struct AppReducer: Reducer {
8282
```
8383
This will make reducer handle all routing relevant actions.
8484

85-
#Implementing `Routable`
85+
# Implementing `Routable`
8686

8787
ReSwiftRouter works with routes that are defined, similar to URLs, as a sequence of identifiers e.g. `["Home", "User", "UserDetail"]`.
8888

@@ -150,11 +150,11 @@ func popRouteSegment(identifier: RouteElementIdentifier,
150150
}
151151
```
152152

153-
##Calling the Completion Handler within Routables
153+
## Calling the Completion Handler within Routables
154154

155155
ReSwiftRouter needs to throttle the navigation actions, since many UI frameworks including UIKit don't allow to perform multiple navigation steps in parallel. Therefor every method of `Routable` receives a `completionHandler`. The router will not perform any further navigation actions until the completion handler is called.
156156

157-
#Changing the Current Route
157+
# Changing the Current Route
158158

159159
Currently the only way to change the current application route is by using the `SetRouteAction` and providing an absolute route. Here's a brief example:
160160

@@ -168,8 +168,8 @@ Currently the only way to change the current application route is by using the `
168168
As development continues, support for changing individual route segments will be added.
169169

170170

171-
#Contributing
171+
# Contributing
172172

173-
##Compiling & Running tests
173+
## Compiling & Running tests
174174

175175
ReSwiftRouter uses [Carthage]() for its development dependencies. To build or test any of the targets, run `carthage bootstrap`.

0 commit comments

Comments
 (0)