Oct 18, 2020Swift Package Manager: bundling resources with a Swift PackageRecently I upgraded my ID3TagEditor swift package to the latest Swift tools version (5.3). During the upgraded I discovered that now you can bundle reources with your Swift package. …Swift6 min readSwift6 min read
Aug 6, 2020Create a service worker with Workbox, Webpack and TypeScriptRecently I migrated my website to Webpack and TypeScript. I decided also to give a try to Workbox, a set of Google libraries to improve the creation of a Progressive Web App. Let’s see how easy it is to create a PWA with this tools. I already talked extensively in…Web10 min readWeb10 min read
Jul 1, 2020Use UIKit components in SwiftUI: UIViewControllerRepresentable and UIViewRepresentableDo you know that it is possible to use UKit components in SwiftUI? Let’s see how you can use UIViewRepresentable and UIViewControllerRepresentable to use your UIKit based component or to fill the gap for missing SwiftUI API. SwiftUI has been around for more than a year now. With its reactive…IOS6 min readIOS6 min read
May 19, 2020Add dark mode support on your website with SASS and prefers-color-scheme media queryDark mode support has been around for quite some time. Let’s see how you can create a light theme and a dark theme for your website that will be selected automatically based on the user system preference. Dark mode has been around for a while on all the major platforms…CSS7 min readCSS7 min read
Apr 18, 2020How to: create your SUPER simple dependency injector container in SwiftThere are a lot of dependency injection framework in the open source swift world with really cool features like object graph, persistence etc. But what if all you need is a lightweight dependencies container? …Swift5 min readSwift5 min read
Mar 5, 2020Create a custom TabBar in SwiftUISwiftUI has been introduced by Apple during the last WWDC. I started to use it for a personal project to understand its potential. Let’s see how I used SwiftUI to create a custom TabBar with modal and detail navigation. NB.: Considering the success of this blog post, I decided to…Swift6 min readSwift6 min read
Jan 17, 2020How to: enable Hermes JavaScript engine in your React Native appReact native 0.60.4 has a new cool feature for Android: a new JavaScript engine called Hermes. Let’s see how you can turn it on in your React Native application to get all its benefits. As you already may know, there has been some complains in the past related to the…React Native4 min readReact Native4 min read
Dec 14, 2019Implement offline tracking with Google Analytics in your Progressive Web AppPWA offer great native alike offline capabilities. But what about tracking? In this tutorial I will show you how simple it is to implement offline tracking with Google Analytics in your PWA. As you may already understood from my previous post, I felt in love with PWA. …Web Development3 min readWeb Development3 min read
Nov 15, 2019Member-onlyImplement a pull to refresh component for you web applicationImplementing a pull to refresh component in vanilla js for your progressive web app (PWA) it’s really easy using cutting edge web technology (service worker, CSS new properties). Let’s do it now! Some months ago I transformed my website into a Progressive Web App (yes, the one you’re reading now)…Web Development10 min readWeb Development10 min read
Sep 5, 2019Web to native code communication on Android using JavaScript InterfacesJavascript Interface can be helpful when you need to call native code from a webview on Android. In a previous post I described how you can call native Swift code from the JavaScript code of web page loaded inside a WKWebView. Today I will show you how to achieve the…Android3 min readAndroid3 min read