Post Archive

2023

Avoid Spacers in SwiftUI Stacks

  • 1 min read

As I teach SwiftUI here and there I have noticed a particular pattern that is being used and I would like to comment on a possible issue it can lead to. Let’s explore it!

Read More

Back to Top ↑

2020

Mastering transitions in SwiftUI

  • 6 min read

Transitions play a vital role in the user experience of our apps. They are visual keys signalizing that the app or screen context is changing.

Read More

Creating onboarding screens in SwiftUI

  • 4 min read

In this post, I would like to discuss several ways how to create onboarding/introduction screens for your app. Let me keep aside the discussion if such screens are good UX pattern, but let me rather examine SwiftUI capabilities for such task instead.

Read More

TikTok logo-ish effect in SwiftUI

  • 3 min read

Hello and welcome to another blog post about SwiftUI. This years WWDC is approaching fast and the expectation of new SwiftUI features and/or changes is tremendous. So I have decided to dedicate this post to something lighter yet still playful.

Read More

Morphing shapes in SwiftUI

  • 5 min read

Hello and welcome to another blog post about SwiftUI animations. In the previous post dedicated mainly to AnimatableData, we have constructed AnimatableVector that allowed us to create animatable charts. Today we will utilize the same class for morphing shapes.

Read More

Animating complex shapes in SwiftUI

  • 6 min read

Hello and welcome to another blog post about SwiftUI. This time, we will talk about the animation of complex shapes in SwiftUI. You will understand animatableData property and will be able to implement animatable custom Shape struct that depends on multiple parameters.

Read More

Back to Top ↑

2019

Custom controls in SwiftUI

  • 5 min read

In my recent project, I have created custom toggle for baby gender selection. In this post, I would like to demonstrate, how to create such a custom view in SwiftUI and comment it in the order how I usually approach these things. But first, let’s have a look at what I am aiming for.

Read More

Animating gradients in SwiftUI

  • 5 min read

SwiftUI animation system is simply amazing. But when using gradient fills, it is impossible to animate color change by just changing its color properties. In this article, I will present and discuss possible ways how to animate gradient fills and also address the issue with .hueRotation modifier.

Read More

Back to Top ↑