- Try the new IBM Cloud Tools for Swift (Beta)
- For developers interested in creating Swift applications that span both client and server-side code, the newest tools from IBM can help simplify the management and deployment of server-side assets. Extend your mobile apps and connect them to IBM Bluemix Cloud services with a local development environment that complements the productive Xcode environment with the IBM Cloud Tools for Swift (beta) now available on IBM Bluemix.
- IBM Swift Sandbox
- Experiment with Swift on the server, share your code and collaborate with your peers
- Swift on IBM Bluemix
- Radically simplify end-to-end development of modern apps with Swift services on IBM Bluemix
- Kitura
- Build end-to-end apps using Swift with Kitura
- The IBM Swift Package Catalog
- Share Swift resources using the IBM Swift Package Catalog
So your apps just implemented a shiny new dark theme and it’s looking 👌 There are lots of benefits to having a dark theme in your application, and having it consistent throughout your application allows for a great user experience. But what happens when the the user runs into a WebView in your app? Support: if (WebViewFeature.isFeatureSupported(WebViewFeature.FORCE_DARK)) { ... } Set: WebSettingsCompat.setForceDark(webView.settings, WebSettingsCompat.FORCE_DARK_ON) Current setting: val forceDarkMode = WebSettingsCompat.getForceDark(webView.settings) Joe Birch Assuming your question is asking how to change the colors of the HTML content you are displaying in a WKWebView based on whether light or dark mode is in effect, there is nothing you do in your app's code. All changes need to be in the CSS being used by your HTML content. CSS dark mode via :root variables, explicit colors and @media query: :root { color-scheme: light dark; ...
Comments
Post a Comment