Better Programming

Advice for programmers.

Follow publication

Member-only story

How To Create Fun Card Animations in SwiftUI

Fernando Moya de Rivas
Better Programming
Published in
7 min readNov 19, 2019
Photo by JOSHUA COLEMAN on Unsplash

Note: All bank cards used here are fake, of course

Introduction

It’s been a couple of months since iOS 13 was released, and although still too soon to be fully supported in our apps, it’s worth taking a look at the two major frameworks that were introduced in this new version: SwiftUI and Combine. No doubt they are the future of iOS development.

Over the last few months, I’ve been playing around with SwiftUI. Even if there are still some things that I feel are missing, I’ve been pleasantly surprised about how extremely easy it is to customize your UI as well as animate it. Something that would take loads of code in UIkit can be accomplished by a couple of lines in SwiftUI. And the best part is it goes smoothly and quickly! It bypasses Core Animation and goes down straight to Metal.

Forget about UIkit and move on, because you’re getting left behind, pal!

BankCards: Quick Overview

BankCards is a small example of what you can do with SwiftUI. I started it out of the blue one of those days I felt inspired. Sometimes, it’s honestly more difficult to come up with a good idea to play around with a new framework than the implementation; I’m…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Fernando Moya de Rivas
Fernando Moya de Rivas

Written by Fernando Moya de Rivas

Enthusiast of Mobile development, interested in Art and Design.

Write a response