Add a button to reset read location

This will be more useful when text to speech updates read position
while listening, gives the user more control and makes it easier
to handle scrolling back in an article.
This commit is contained in:
Jackson Harper
2022-10-11 15:12:22 +08:00
parent 3709628a93
commit 08c06a6dff

View File

@ -175,6 +175,12 @@ struct WebReaderContainerView: View {
)
}
)
Button(
action: {
dataService.updateLinkReadingProgress(itemID: item.unwrappedID, readingProgress: 0, anchorIndex: 0)
},
label: { Label("Reset Read Location", systemImage: "arrow.counterclockwise.circle") }
)
Button(
action: { shareActionID = UUID() },
label: { Label("Share Original", systemImage: "square.and.arrow.up") }