Hi there 馃憢

This blog is intended to share my knowledge about software architecture, system design, tools, and techniques for producing high-quality products.

Animation - SwiftUI

Introduction I was eager to learn about creating complex animations in SwiftUI. The few questions that were on my mind included what types of animations exist and what I can animate. Here is what I found: Types of Animation SwiftUI has explicit and implicit animation types. Implicit Animation: This is specified with the .animation() modifier. SwiftUI will animate changes in old and new values. struct ImplicitAnimation: View { @State private var half = false @State private var dim = false var body: some View { Image("tower") ....

May 17, 2024 路 2 min 路 Dmytro Chumakov

Implementing GraphQL in an iOS application

Introduction I previously never had a chance to work with GraphQL. I was excited to learn when to apply this technology, what tools I can use, and how I can implement it. Here鈥檚 what I found: For testing, I used the Star Wars GraphQL API with AllFilmsQuery: query AllFilmsQuery { allFilms { films { title director created producers releaseDate } } } I requested allFilms with title, director, created, producers, and releaseDate information....

May 15, 2024 路 3 min 路 Dmytro Chumakov

Securing user data with Keychain, Touch ID, and Face ID

Introduction I was eager to learn about securing user data using Keychain and biometric authentication. Here are a few steps I found: Caveats You can test accessing Keychain data using Touch ID and Face ID only on a real device. First Step The first step is to add the Privacy - Face ID Usage Description key to your Info.plist. Without it, you would not be able to retrieve data from Keychain using Face ID....

May 13, 2024 路 4 min 路 Dmytro Chumakov

Implementing In-App Purchases to SwiftUI app using StoreKit 2

Introduction I was wondering how to add in-app purchases to my app. I chose non-consumable in-app purchase because you can pay one time for this item. Here are a few steps on how I did it. First Step Set up In-App Purchases for your app in App Store Connect account or add a .storekit configuration file and start from there. If you鈥檝e already set up In-App Purchases in your account, you can sync the StoreKit config with that data....

May 12, 2024 路 3 min 路 Dmytro Chumakov

Implementing Apple Pay in a SwiftUI app

Introduction Sometime ago, I was working on a marketplace app, and I needed to add Apple Pay to make purchases more easily. Here are a few steps on how I did it: First Step You need to add Apple Pay capability to your project. You will need to Register a Merchant ID. I will skip this step; you can find info by following this link Setting up Apple Pay. Second Step You will need to import PassKit and create PKPaymentRequest to interact with PKPaymentAuthorizationController and PKPaymentAuthorizationControllerDelegate....

May 11, 2024 路 3 min 路 Dmytro Chumakov