Everyday SwiftUI How-To's

Jan 05, 2026 General

The job of a developer or an engineer is not to write code. The job is to solve problems.

conver image

SwiftUI is designed to be expressive, concise, and closely aligned with how UI is described. Most day-to-day development involves small, practical decisions: layout adjustments, view visibility, styling, previews, and adapting to system appearance.

This section brings together a set of focused how-to articles that address common SwiftUI tasks developers encounter while building real apps. Each post is scoped to a single problem and shows the most direct, idiomatic way to solve it using SwiftUI.

The topics here intentionally stay at the surface level:

Centering views, applying padding selectively, reacting to color scheme changes, styling buttons, working with SF Symbols, and using previews effectively. These are not advanced concepts, but they are patterns you use constantly.

These articles act as practical references that you can read, code along, and refer to later.

This collection serves as a foundation for everything that follows—simple, repeatable solutions that keep SwiftUI layouts predictable, consistent, and aligned with system behavior.


All about creating a project with Xcode

Creating a project on Xcode is fairly simple but there are small nuances that do make a differnece.

Organize your files to boost productivity

Organizing folders and fies are important architectural decisions. Depending on the structure – MVC, MVVM, VIPER etc. – the file-folder structure changes. Just make sure it aids you more than it hurts you.

The magical 'Preview' canvas

Previewing is not a new technology – it's long been used with frontend development. Let's dive deeper on how to minimize running the app by using the previews.

How many ways are there to make a chunk of code reusable

In 2026, we can't engineer an app without reusability. It's scalable, customizable and saves a lot of time. But how many ways can we make something reusable?

Buttons, did you say?

Let's customize the buttons, shall we?
Almost no designer uses the default button styles that Apple gives us and it takes ages to figure out the whats and hows. Let's get into buttons and actions.

Get any view to the center

Centering a view can be tricky depending on the layout.

How to add a divider with custom spacing

Dividers are essential to lists and large views displaying multiple sections. But can we customize them?

How to use SF Symbols correctly

SF Symbols pack thousands of icons that apps generally need. They are customizable in more ways than one and it's vast. Let's explore some of those.

How to support Dark Mode properly

Color scheme is handled by the system by default. But how to make it change on demand?

Section Finale! Let's build a settings scene.

Let's end this section of the blog by building a Settings scene using default and reusable components.