I'm experimenting with the turbolinks-ios adapter for turbolinks 5.
Apparently, the background color of the VisitableView
is white. But when the background color of the web application is not white, the turbolinks transition does not look so good: When clicking a link, the background becomes white and changes back to the desired background color once the content is loaded.
The obvious solution would be to set the iOS app's background color, but how?
Demo Application
Turbolinks for iOS has a demo application that may serve as an example context if this makes it easier to answer the question.
The demo app can be found here: https://github.com/turbolinks/turbolinks-ios/tree/master/TurbolinksDemo
This did work:
In the
ApplicationController
'spresentVisitableForSession()
, set thevisitable.visitableView.backgroundColor
.For example: