class WebScreen < PM::WebScreen
attr_accessor :url
status_bar :none
def on_load
test_if_login
set_nav_bar_button :left, title: "Back", action: :go_back
view.on_swipe :left do
go_back
end
end
def go_back
if webview.canGoBack
PM.logger.debug "go back"
webview.goBack
end
end
swipe guesture not working with webViewScreen
I'm not sure what's the problem,
But it just doesn't work.
I running on the iOS 8.2 simulator
Rakefile
require 'sugarcube-gestures'
Webview
class WebScreen < PM::WebScreen attr_accessor :url status_bar :none
end