The Flexible Swift Error Handling
Hallo iedereen, Leo hier. Today we will talk about error handling in Swift. Note that the article today is about “Error Handling” not “Error Throwing” and that distinction is important because Swift is on the verge of having a really good error-throwing feature. While we wait until at least 2024 fall we will study the […]
How to use Published Properties inside a Protocol in SwiftUI?
Hallo jassen en Jurken, Leo hier. Today we will talk about published properties and protocols in SwiftUI. Last weekend I had a nice chat with my friends about getting old and the effects we already feel in our bodies. Interestingly, the most common aging effect is that we all eat less. When I was young […]
Unavailable Functions In Swift
Hallo brandweerlieden en softwareontwikkelaars, Leo hier. Happy New Year! Today let’s talk a little bit about unavailable functions in Swift. Winter has arrived and with it the cold. It’s time to be at home, cozy and under the blankets. In my homeland, however, things during this time of the year were different because it was […]
Mastering the ‘Final’ Keyword in Swift: A Comprehensive Guide for Optimized Coding
Hallo jurken en jassen, Leo hier. Today we will talk about a very basic concept in Swift, the final keyword. So keep in mind that this will be a very beginner-friendly article. In the dynamic world of Swift programming, understanding and effectively using language-specific features is key to writing efficient, robust, and maintainable code. One […]
A Guide to Geofences in SwiftUI
Hallo hoofdgerechten en snoepjes, Leo hier. Today we will create Geofences in SwiftUI. I think we all remember the Pokemon GO fever, right? Here are just some examples of that fever. Hundreds of people running after Pokemons in certain locations. That was the dream of any Pokemon trainer, now they can have the same feeling […]
Create Your Own Step Counter SwiftUI App in 5 Minutes
Hallo telefoons en televisies, Leo hier. Today we will explore the amazing world of HealthKit creating a really simple Step Counter SwiftUI app. As the year draws to a close, it brings with it many joys: Christmas parties, indoor barbecues with friends (locally known as ‘gourmetten‘), and New Year celebrations. This is also the time […]
Conquering the Climbing Stairs Challenge with Swift: A Dynamic Programming Approach
Hello, Swift enthusiasts and coding aficionados! Today, we’re diving into an exciting journey through the world of dynamic programming, as we tackle a popular problem from LeetCode: the “Climbing Stairs” challenge. This fun yet challenging problem is a fantastic opportunity to explore the principles of dynamic programming and how it can be elegantly applied in […]
Unit Test Expected Failures in Swift
Hallo jassen en jurken, Leo hier. Today we will explore how to create expected failures in unit tests using pure Swift. I posted two questions on my LinkedIn about soft and hard skills. I’m opinionated about this matter and I wanted to hear from the community what your thoughts are. I know that some people […]
Swift Metatypes: What They Are and Why You Should Care
Hallo allemaal, Leo hier. Today we will talk about a not-so-known Swift language topic which is Swift Metatypes. Have you ever declared a variable or constant in Swift and wondered what the .self or .Type keywords were all about? If so, you’ve stumbled upon the concept of metatypes in Swift. But what exactly are metatypes […]
The Future of Accessing User Location in SwiftUI
Hallo afwijkenden en wanbetalers, Leo hier. Today we will explore the new API to get User Location in SwiftUI. You know, when we first start out in our careers, it’s all about getting the technical things right. We’re laser-focused on mastering the skills of our trade. But as time goes on and we move up […]