Using Codable with mixed types content
Dec 2, 2020, 2:30 AM
In today's article, we'll focus on parsing an API response with Codable when expecting an array made of different type of data.
SwiftUI and SFSafariViewController
Aug 4, 2019, 6:44 AM
This week I started playing with SwiftUI and tried implementing some basic things: I wanted display a SFSafariViewController and encountered some issues.
Here's the story.
Writing easy-to-read and reusable UIAlertController code
Jul 3, 2019, 2:26 AM
How would you write some code to display a simple alert style UIAlertController?
RelativeDateTimeFormatter and ListFormatter
Jun 6, 2019, 3:24 PM
At WWDC19, Apple introduced two new formatters that will help developer in many ways. Only available from iOS 13+.
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 som 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). In this article I will try to give a brief feedback about each of them and how much I enjoyed it.
Advanced screenshot and screen capture from your iOS Simulator
Dec 15, 2018, 7:54 AM
You may sometimes need to take screenshots of your app, wether it's on iOS, tvOS or watchOS. It's easy to do so from an iPhone or iPad, but maybe a little more difficult on an Apple Watch or Apple TV.
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, 12:31 PM
You are performing a task and expect two kind of results: success and failure (eg: performing a request to a server).
A simple way to deal with it would be to have two closures, one for success and the other for failure.
Here is how your...
Simple HUD with Swift Protocols
Sep 14, 2018, 4:31 PM
This article is about building and implementing your own HUD with Swift protocol.
Why we should all use Storyboards
Aug 16, 2018, 3: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, 3: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.
Jul 20, 2018, 3:23 PM
So this is my first blog post. Maybe I should introduce myself...