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 […]
Discovering All SwiftUI TextField Keyboard Types
Hallo graaf en burggravin, Leo hier. Today we will explore all the SwiftUI TextField Keyboard types. It is always weird to say that we will explore ALL the possibilities for an API because I feel that whenever I press the “publish” button it is already out-of-date content. But for this specific case, I have a […]
SwiftUI Guide: Triggering Actions Solely on First View Appearance
Hallo bomen en bloemen, Leo hier. Today we will talk about a little something widespread in UIKit but we don’t have a native way to do it in SwiftUI that is running an action just once per view load. In UIKit lifecycle we had the viewDidLoad callback that we could use and that would guarantee […]
Exploring the new Preview Macro with SwiftUI and UIKit
Hallo allemaal, Leo hier. Today we will explore the new Preview macro and how you can level up your canvas with it. Today I was browsing LinkedIn and one question from one of my iOS developers colleagues appeared. It was asking: What would you say to your younger self when you were starting your iOS […]