In this post, we'll take a look at how we can create a configurable button with pre-defined states. We'll add four different states and update the button state in the code.
When developing apps in SwiftUI, we're given a set of components that allow us to support both light and dark modes without a lot of work. But, there might be occasions where you want a different dark mode color for your app. Like dark blue.
Enums are a data type that allow you to define your own values and work with them in a type-safe way. In this article, we'll create a TabView and utilize enums to define the data we need, in a type-safe way.
Swift Algorithms is an open source package of sequence and collection algorithms. It contains many generic algorithms found in other popular programming languages. In this post, we'll take a look at how to implement the .chunked() algorithm to chunk an array of data and display it in your UI.
Localizing your app is a big part of making it more inclusive and available to people in other languages. Apple has made it easier for developers to localize our apps. Starting with Xcode 15 and String Catalogs.
In SwiftUI, you can use Link to let the user open a website in their default web browser. But sometimes you want them to stay in your app; to read privacy policy or similar. In that case, you have different options to present web content without the user ever leaving your app.
When the new Swift concurrency model was announced at WWDC 2021 we all wanted to jump on that wagon. However, rewriting your entire codebase might not be the best solution. Instead, you have the option to slowly start adapting the new model by bridging the old code with the new.
You use Xcode build configuration files to define all sorts of useful build settings. You can open them with different text editors outside of Xcode and all properties are in plain text. It's common to use them for managing constants across different environments.
Implementing network connectivity monitor doesn't require a lot of code. But it can mean a lot between a happy and a frustrated user.
A class diagram describes the structure of a system by showing its classes, their attributes, methods, and their relationships. It's one of the many diagrams of UML and a most common one. Knowing how to create a class diagram could give you an advantage and it's a useful skill to have. Creating a class diagram could come as an interview question.