DYXML: Build XML with a Swift @resultBuilder tool
Jun 25, 2021, 12:00 PM
As I was working on personal project, I needed a tool to build an XML file. It happened to coincide with the release of @resultBuilder, available with Swift 5.4 and from Xcode 12.5.
Using Codable with mixed types content
Dec 2, 2020, 2:30 AM
As mobile developers, we usually know exactly what kind of data we’re manipulating and have an idea of what we expect from API responses. But sometimes we don’t get the data structured as we would wish.
SwiftUI and SFSafariViewController
Aug 4, 2019, 7:44 AM
This week I started playing with SwiftUI and tried implementing some basic things: building a List with Sections, creating Custom cells etc. And I wanted then to simply display a SFSafariViewController when selecting an element of my List.
Writing easy-to-read and reusable UIAlertController code
Jul 3, 2019, 3:26 AM
How would you write some code to display a simple alert style UIAlertController?
RelativeDateTimeFormatter and ListFormatter
Jun 6, 2019, 4:24 PM
At WWDC19, Apple introduced two new formatters that will help developers in many ways. Only available from iOS 13+ (beta at the time this article is being written).
Writing your own Network layer in Swift
Feb 22, 2019, 3:30 PM
A network layer is required for any apps that consumes an API. In this article, I will present my own implementation of a network layer in Swift (heavily inspired by Moya), something I actually use in small projects.
Measurement on your [i|mac|watch|tv]OS Apps
Feb 6, 2019, 10:33 AM
Measurement is a powerful tool available on all Apple OS and a must-use when having to deal with values such as temperature, pressure, speed, area, etc.
flatMap(_:) vs flatMap(_:) vs compactMap(_:)
Jan 30, 2019, 7:25 AM
With Swift 4.1 and when working with arrays, Apple deprecated flatMap(_:) to compactMap(_:). But there may be some confusion about flatMap(_:)…
Machine Learning and Apple - Pokédex: Gotta Learn ‘Em All!
Jan 22, 2019, 8:53 AM
Apple introduced some really nice features with Machine Learning and made it accessible and easy to understand to all developers. This article will introduce you to CoreML and Create ML and how to build a Pokédex!
A retrospective on 2018 iOS Conferences
Dec 26, 2018, 5:05 AM
I had the chance this year to attend 3 iOS conferences, including Apple’s own WWDC (for the second time).
Advanced screenshot and screen capture from your iOS Simulator
Dec 15, 2018, 7:54 AM
You may sometimes need to take screenshots or video captures of your app, wether it’s on iOS, tvOS or watchOS.
Swift and lazy properties
Nov 16, 2018, 4:41 PM
Lazy properties is a very simple concept, that many may know without even knowing it. It allows us to declare properties which will only be created when needed.
Dealing with trailing closure syntax in Swift
Sep 24, 2018, 1:23 PM
You are performing a task and expect two kind of results: success and failure (eg: performing a request to a server).
Simple HUD with Swift Protocols
Sep 14, 2018, 5:31 PM
Call them HUD, spinner, loading indicator or loading view…
Why we should all use Storyboards
Aug 16, 2018, 4:20 AM
At one point or another, any developer may have had to argue with the fact of using Storyboards over XIB or vice versa.
CocoaPods or Carthage
Aug 4, 2018, 4:23 AM
Both are dependency managers for Cocoa projects with a large community of users or contributors. In this article, I will first try to explain their common purpose and what sets them apart.