README update

This commit is contained in:
John O'Reilly 2019-12-22 21:42:24 +00:00
parent c039cb45ee
commit 3ee760fefa

View file

@ -13,7 +13,7 @@ using **Jetpack Compose** and on iOS using **SwiftUI**
### SwiftUI Code
```
```swift
struct ContentView: View {
@ObservedObject var peopleInSpaceViewModel = PeopleInSpaceViewModel(repository: PeopleInSpaceRepository())
@ -45,7 +45,7 @@ struct PersonView : View {
### Jetpack Compose code
```
```kotlin
class MainActivity : AppCompatActivity() {
private val peopleInSpaceViewModel: PeopleInSpaceViewModel by viewModel()