Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/setup/ios.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ struct CounterEntry: TimelineEntry {
Adjust the `TimelineProvider` to build a timeline (can be single entry if all updating is always handled from Flutter) where you create a `TimelineEntry` based on the Data stored with `HomeWidget.saveWidgetData`
```swift
struct Provider: TimelineProvider {
func placeholder(in context: Context) -> SimpleEntry {
SimpleEntry(date: Date(), counter: 0)
func placeholder(in context: Context) -> CounterEntry {
CounterEntry(date: Date(), counter: 0)
}

func getSnapshot(in context: Context, completion: @escaping (SimpleEntry) -> ()) {
Expand Down Expand Up @@ -142,4 +142,4 @@ fi
```

Replace `HomeExampleWidget` with the name of the widget extension folder that you have created.
</Accordion>
</Accordion>
Loading