Can HTMLViewer go back?

Does the HTMLViewer allow a user to go back to the previous webpage?
It seems that it can’t show the previous page, if the user has clicked a link and has moved on to read another page.
Or is there a workaround?

Xojo HTMLViewer is based on UIWebView

UIWebView doesn’t allow the user to go back with a swipe, as opposed to WKWebView that has an option for this.

But you could place back and forward buttons to enable navigation.

This code should allow to go back (untested)

Declare function canGoBack lib "UIKit.framework" selector "canGoBack" (obj_id as ptr) as boolean
Declare sub goBack lib "UIKit.framework" selector "goBack" (obj_id as ptr)

if canGoBack(HTMLViewer1.handle) then
goBack(HTMLViewer1.handle)
End if

Works like a charm. Thanks monsieur Leroy !