https://www.youtube.com/watch?v=eKtWY0962Hg 🎯 Difficulty: Intermediate to Advanced In this speed coding session, we write unit tests for a Swift ViewModel built with the MVVM architecture and powered by Combine and @MainActor concurrency. You’ll see how to: ✅ Write precise and meaningful unit tests using XCTest 🔍 Test async @MainActor functions with Combine’s @Published properties 🧪 Mock … Continue reading Speed coding – Unit Testing the MVVM in Swift
Supercharge Your Modern iOS App with AppIntents, Siri, and AppShortcuts for Seamless User Interactions
Overview As iOS continues to evolve, Apple is enhancing how apps can integrate with Siri and system-wide shortcuts through AppIntents and AppShortcuts. These frameworks allow for custom, predefined tasks within apps that users can trigger with voice commands, Spotlight, or the Shortcuts app. This article explores the benefits and implementation details of these frameworks in … Continue reading Supercharge Your Modern iOS App with AppIntents, Siri, and AppShortcuts for Seamless User Interactions
WordPress Scheduled Post: “#4 Part 4.1- iOS – TDD – Random Character App – Swift – Enable the Power of TDD to Refactor MVVM to State based MVVM”
In this video, we will learn how to safely refactor our ViewModel using TDD using State based ViewModel variation. Let's dive in into the second part of 4th video, State base MVVM with TDD!
4 Part 4 – iOS – TDD – Random Character App – MVVM ViewModel
In this new series, we will be learning how we can use Test Driven Development on a networking based iOS project app, and in this case, we will fetch random character from `rickandmortyapi` and display it to the screen! In this video, we will learn how we can build our ViewModel component using Test Driven … Continue reading 4 Part 4 – iOS – TDD – Random Character App – MVVM ViewModel
#2 Part 2 – iOS – TDD – Random Character App – TDD Networking with Moya (Continue)
In this new series, we will be learning how we can use Test Driven Development on a networking based iOS project app, and in this case, we will fetch random character from `rickandmortyapi` and display it to the screen! Let's dive in into the second part, the Test Drive Networking layer. We will learn on … Continue reading #2 Part 2 – iOS – TDD – Random Character App – TDD Networking with Moya (Continue)
Unit Testing Tips for Your UI
Photo by NordWood Themes on Unsplash Today, we are going to learn extra tips to test your ViewController. It is always good to have extra test since it can increase your code validity. Testing your viewController can helps you be more extra aware of what is actually going on with the ViewController. There are some tips that I … Continue reading Unit Testing Tips for Your UI
Cleaning AppDelegate or SceneDelegate Using ViewControllerFactory
Factory Design Pattern Illustration Overview AppDelegate or SceneDelegate is the main file that we as iOS developers know to configure, inject, or instantiate a global instance or frameworks. This place become essential, especially because it is actually the starting point of our app. Because it knows so many things, like configuring the frameworks, handling push … Continue reading Cleaning AppDelegate or SceneDelegate Using ViewControllerFactory
Implementing Builder Pattern to create Navigation Stack for UIViewController on iOS
Photo by helloimnik on Unsplash Introduction A Builder pattern is one of Design Pattern that belongs to the creational Design Pattern. The pattern exist to solve issue on creating a complex object. This pattern can helps developer to create an object in a simple and elegant way. To use the pattern, we need to create … Continue reading Implementing Builder Pattern to create Navigation Stack for UIViewController on iOS
MVCS on iOS with Alamofire
💡 This article is originally written on my Medium in 2018 and moved here in 2021 MVC Diagram MVC (Stands for Model-View-Controller) is a design pattern in software engineering world that has around for many years. It is always been good to make your code has separate layer between the Model, View and the Controller. … Continue reading MVCS on iOS with Alamofire
iOS UITesting with XCUITests
UITesting is one of test that Xcode provides the developer to test their app specifically for the UI. Apple’s XCUITests provides simpler and easier approach to test the UI of your app. Here, I created simple app that has login view so we can test weather the logic meets valid condition. Let’s dive to the … Continue reading iOS UITesting with XCUITests