Symbols (or icons) are an essential part of any app. Luckily, when developing for Apple platforms, we have the amazing collection of SF symbols at our disposal. But even with over 6000 symbols already available, sometimes the one you need doesn't exist yet. We'll go over how to create a custom symbol in Sketch.
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.
You likely have a lot of views in your app that display a label and a value with a space in between using an HStack. Did you know there's a LabeledComponent view that does exactly that but in fewer lines of code? No need to create custom components.
There are days where I can't wait to share something new I've learned. And then there are days where I don't feel like writing at all. Small steps matter. You can't always give it your 100%. Take care of yourself first.
Discover how to use SwiftUI's ContentUnavailableView to effortlessly handle empty views in your app. It's easy to use, customizable, and has a pre-defined view for an empty search state. Available in iOS 17.0+.
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.
Creating PRs is an easy task. Creating good PRs requires time and effort. Reviewing them, on the other hand, is something completely different. Here are some things you should look for when reviewing other people's PRs.
SwiftCharts framework makes it easy to add charts to your app and display the data to your users in a visually pleasing way. In this article, we'll design a custom chart to display weight tracking data over a period of one week. We'll utilize line chart and area chart to make our graph look more stylish.
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.
Writing has helped me learn technical topics in greater detail. There's nothing like thinking you know something until you try to explain it to someone. It's been one year since I've published my first blog post and I'd like to share some of my thoughts and experiences.
Conferences are an awesome opportunity to network and meet other developers. They always inspire me and remind me why I take a lot of time out of my day to share my learnings and be the part of the community.
Typing your login credentials manually during development takes away your time and focus. If you make a lot of small changes and need to check them often, that's a lot of time spent on the login screen. Set up a breakpoint in Xcode instead and speed up your development time.
Interviews are hard. But when you get the job, you've done the hard part. You already made a good first impression so just continue being yourself and you'll do great. Read these 10 pragmatic tips to help you get started with a bang.
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.
Card-like designs are seen often in UIs. Usually, a view with a white background, rounded corners, and a dark shadow that makes the view look like a card on top of another view. It gives a nice look to different view components and separates parts of UI.
Creating an reviewing pull requests (PRs) is an everyday part of our work. Why don't make it easier and more enjoyable for others reviewing your work? Your colleagues will thank you for it! Learn here how you can improve your pull requests in 5 tips.
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.
Have you ever looked back a certain period of time; a week, a month, a year, and thought you haven't done anything? I have. We all have. Sometimes I think I haven't learned anything, looking at what's left to learn. Sometimes I think I haven't done anything looking at what's left undone.
Oftentimes, when developing your apps, you create a specific button style with different labels and actions to keep your UI consistent across different screens. You'll learn how to create a button view you can reuse across your app instead of having to create a new one every time.
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.
To configure custom domain for websites hosted on GitHub Pages, your repository needs to contain a CNAME record file. You can add the file manually through GitHub, but it gets overwritten after deployment. Publish force pushes to the repository and overwrites the content. In this post, learn how to persist the CNAME record and make sure it never gets deleted.
Implementing network connectivity monitor doesn't require a lot of code. But it can mean a lot between a happy and a frustrated user.
You're working on your website and making changes, but nothing has changed. You refresh the browser and yet nothing happens. In this post, learn how to use the tools available to refresh your website and see the changes you've made, applied instantly.
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.
Publish has a default HTML theme called Foundation. But it serves as a guideline and a point of reference to creating your own theme. So your next step, before deploying your website, is to change the default theme and create your own.
You've created your website and you're ready to show it off to the world. Next thing on your list is to choose where to host it. In this post, I'll show you how to deploy your Publish website on GitHub Pages.
It's already daunting enough to learn a new programming language. However, learning never stops. So when do you know is a good time to start applying for your first job as a junior developer? Is there ever a good time for that or should you just go for it? In this post, I've shared my personal experience and things I did that helped me land my first job. It took me one year.
Sometimes, when parsing a JSON, you need to implement a custom Codable initializer. Because of that custom logic, you're no longer using the default implementation. It's a good idea to test your code.
After generating a website using Publish you have two options to start building your website: using markdown files or programmatically. In this post, you'll learn how to add sections and content with markdown files.
Publish is a static site generator that lets you build website in your favourite programming language - Swift!
Attending conferences is a great way to learn new things, meet other developers, and promote your company or personal projects you've been working on. But have you ever wondered what it's like to be a speaker? Are you interested in speaking but don't know how or where to start? Impostor syndrome? You have more to offer than you think! Let's see why you should apply as a speaker and how to do that.
@Published properties stream values over time and any changes on the property are immediately sent to all observers. Let's recap how the property works and then we'll take a look at how we can test @Published properties using Apple's testing framework - XCTest.