Skip to content

Commit e8b434f

Browse files
Kenta Aikawamluisbrown
authored andcommitted
Fix README indent (#1279)
(cherry picked from commit 1d4fdc3a29f136cebaff7ede1d12d4aa5388aced) # Conflicts: # README.md
1 parent 6c40d03 commit e8b434f

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

README.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# A Reactive Swift fork of The Composable Architecture
22

3-
[![CI](https://github.com/trading-point/reactiveswift-composable-architecture/workflows/CI/badge.svg)](https://github.com/trading-point/reactiveswift-composable-architecture/actions?query=workflow%3ACI)
4-
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ftrading-point%2Freactiveswift-composable-architecture%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/trading-point/reactiveswift-composable-architecture)
5-
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ftrading-point%2Freactiveswift-composable-architecture%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/trading-point/reactiveswift-composable-architecture)
3+
[![CI](https://github.com/ReactiveCocoa/reactiveswift-composable-architecture/workflows/CI/badge.svg)](https://github.com/ReactiveCocoa/reactiveswift-composable-architecture/actions?query=workflow%3ACI)
4+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FReactiveCocoa%2Freactiveswift-composable-architecture%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/ReactiveCocoa/reactiveswift-composable-architecture)
5+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FReactiveCocoa%2Freactiveswift-composable-architecture%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/ReactiveCocoa/reactiveswift-composable-architecture)
66

77
[Point-Free's](https://github.com/pointfreeco) [The Composable Architecture](https://github.com/pointfreeco/swift-composable-architecture) uses Apple's Combine framework as the basis of its `Effect` type.
88

@@ -265,20 +265,21 @@ Once we are ready to display this view, for example in the app's entry point, we
265265
```swift
266266
@main
267267
struct CaseStudiesApp: App {
268-
var body: some Scene {
269-
AppView(
270-
store: Store(
271-
initialState: AppState(),
272-
reducer: appReducer,
273-
environment: AppEnvironment(
274-
numberFact: { number in
275-
let (data, _) = try await URLSession.shared
276-
.data(from: .init(string: "http://numbersapi.com/\(number)")!)
277-
return String(decoding: data, using: UTF8.self)
278-
}
268+
var body: some Scene {
269+
AppView(
270+
store: Store(
271+
initialState: AppState(),
272+
reducer: appReducer,
273+
environment: AppEnvironment(
274+
numberFact: { number in
275+
let (data, _) = try await URLSession.shared
276+
.data(from: .init(string: "http://numbersapi.com/\(number)")!)
277+
return String(decoding: data, using: UTF8.self)
278+
}
279+
)
280+
)
279281
)
280-
)
281-
)
282+
}
282283
}
283284
```
284285

@@ -291,13 +292,13 @@ To test, you first create a `TestStore` with the same information that you would
291292
```swift
292293
@MainActor
293294
func testFeature() async {
294-
let store = TestStore(
295-
initialState: AppState(),
296-
reducer: appReducer,
297-
environment: AppEnvironment(
295+
let store = TestStore(
296+
initialState: AppState(),
297+
reducer: appReducer,
298+
environment: AppEnvironment(
298299
numberFact: { "\($0) is a good number Brent" }
300+
)
299301
)
300-
)
301302
}
302303
```
303304

0 commit comments

Comments
 (0)