README update
This commit is contained in:
parent
c039cb45ee
commit
3ee760fefa
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue