2024
Magical Particle Effects with SwiftUI Canvas
In one of the previous posts, I shared a simple way of Creating particle effects in SwiftUI. The approach is super easy and utilizes the power of viewModifiers, but I would not recommend it for production use as it is performance-greedy when having a bigger amount of particles in place (because each particle is a single view)
2023
SwiftUI transitions with distortion effect and Metal Shaders
This year DubDub is over and I am very excited about the new developer treats that iOS17 will bring us that expand the animation possibilities of SwiftUI. I am talking mainly about the PhaseAnimator, KeyframeAnimator and the ability to utilize Metal shaders on SwiftUI views through modifiers .distortionEffect, .layerEffect, and .colorEffect (docs).
Avoid Spacers in SwiftUI Stacks
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!
2020
Creating particles in SwiftUI - in less than 50 lines of code
I have put together a short video about creating particle effects with SwiftUI. It showcases the easiest/lazy way, which is great for simple eye candies and experimenting.
Mastering transitions in SwiftUI
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.
Creating onboarding screens in SwiftUI
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.
TikTok logo-ish effect in SwiftUI
Morphing shapes in SwiftUI
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.
How to define custom LLDB command in Xcode
It has been a couple of months since my last post. I have been quite occupied with a big project where I am helping to modernize its archaic code-base.
Animating complex shapes in SwiftUI
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.
2019
Custom controls in SwiftUI
Creating a game in SwiftUI - Story
Creating a game in SwiftUI - Retrospection
I created a game. In SwiftUI. A madness, you might say? Well…
Animating gradients in SwiftUI
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.
Tweaking SwiftUI animations with GeometryEffect
In this article I will talk about GeometryEffect and some techniques how this modifier can be used to spice up animations in your SwiftUI apps. If you are new to SwiftUI, i recommend you to go through set of tutorials provided by Apple that serve as a great kickstart reference.
Hello world
The time has come for me to start a blog.