Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maartene committed Sep 9, 2023
1 parent 8cea891 commit c14baca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ print("Story done!")
## Using Combine/SwiftUI
InkStory conforms to the `ObservableObject` protocol. This makes using it in Combine possible and SwiftUI very easy. A simple example SwiftUI view that can play an Ink story would contain:

### Import the SwiftInk package
### Import the InkSwift package
Add
```
import SwiftInk
import InkSwift
```

to ContentView.swift
Expand Down
6 changes: 3 additions & 3 deletions Sources/InkSwift/InkSwift.docc/Getting Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ print("Story done!")
## Using Combine/SwiftUI
InkStory conforms to the `ObservableObject` protocol. This makes using it in Combine possible and SwiftUI very easy. A simple example SwiftUI view that can play an Ink story would contain:

### Import the SwiftInk package
### Import the InkSwift package
Add
```swift
import SwiftInk
import InkSwift
```

to ContentView.swift
Expand All @@ -116,7 +116,7 @@ guard let storyJSON = try? String(contentsOf: url) else {
fatalError("Could not load story file.")
}

story.loadStory(json: storyJSON)
story.loadStory(json: storyJSON)
}
```

Expand Down

0 comments on commit c14baca

Please sign in to comment.