4 ms·
You do realize that there are many APIs that exist so that your Swift app works offline, right? There are specific persistence frameworks, tools for controlling
by saagarjha 1y ago
You do realize that there are many APIs that exist so that your Swift app works offline, right? There are specific persistence frameworks, tools for controlling caching, extensions for managing external files, etc. The argument that writing JavaScript that doesn’t make network requests and needs to store state to disk is somehow super special and different than any other regular JavaScript makes no sense.
- pjmlp 1y agoYou do realise using Swift doesn't require having a network card on your laptop to run 100% of all applications compiled with swiftc?
- lenkite 1y agoYou do realize that neither do browser apps require having a network card on your laptop, right ? You can run local browser apps (HTML + CSS + JS) on a computer with no network card.
- pjmlp 1y agoExcept for doing anything actually usefull they end packaged with Chrome.
- lenkite 1y agoNo, not at all. Lots of apps using the system webview nowadays. I would urge you to revise your deeply outdated knowledge. Lots of frameworks making this convenient too. Capacitor (Ionic) Apps, Cordova (PhoneGap) Apps, Tauri (non-Chromium modes), etc. A network card is not required for: - Loading local HTML files into a WebView - Packaging an app that embeds the WebView (e.g., WinUI WebView2, macOS WKWebView, Android WebView, blah-blah) - Running JavaScript, CSS, DOM APIs - Using local storage, IndexedDB, etc - Accessing file:// resources - Communicating with native code (e.g., JS <-> native messaging) Btw, there are a lot of non-Chromium apps! Are you aware that Microsoft Teams now uses the System WebView on mobile (iOS WKWebView / Android WebView) ? Linux apps like GNOME Notes, Foliate, ReText, Liferea etc use the system webview. Apple Music, Apple TV, Apple Podcasts, App Store, Dash, etc use WKWebView Can keep going on and on...