Published in Better Programming·Dec 25, 2022Member-onlyPragmatic Testing and Avoiding Common PitfallsExplained with Swift examples — The main purpose of writing tests is to make sure that the software works as expected. Tests also give you confidence that a change you make in one module is not going to break stuff in the same or other modules. Not all applications require writing tests. If you are…Testing11 min readTesting11 min read
Nov 8, 2022Member-onlyBecoming an iOS Developer — The Complete Guide 2023It always excites me to see so many people jumping into iOS development. We have a great community with lot of talented people and it is continuously expanding. Recently, I have been talking to a lot of new developers and one of the main challenges they shared with me is…Software Development23 min readSoftware Development23 min read
Published in Better Programming·Oct 30, 2022Member-onlyEvolving SwiftUI Architecture for Client-Server AppsApplying React.js learnings to SwiftUI — In the last architecture, we discussed in detail about SwiftUI Architecture using the MV Pattern. It is highly recommended that you read that article. In this post, we will cover how to create SwiftUI client/server applications using patterns and practices learned from the React.js framework. Consuming JSON in React React was introduced in 2013…Swiftui5 min readSwiftui5 min read
Oct 15, 2022Member-onlyEmbracing Core Data in SwiftUILast year I was working on an app which was using the Core Data framework as a persistent medium to the SQLite store. I was reluctant to use any SwiftUI property wrappers for Core Data in my app, because I wanted to structure the…I OS App Development10 min readI OS App Development10 min read
Published in Better Programming·Oct 14, 2022Member-onlySwiftUI Architecture — A Complete Guide to the MV Pattern ApproachInstead of fighting the framework, try to embrace it — I was listening to an amazing talk by Matias Villaverde and Rens Breur at NSSpain about “Lessons learnt rewriting SoundCloud in SwiftUI.” You can watch the complete talk here. This talk really resonated with me because I made similar mistakes when building SwiftUI applications. Instead of embracing the simplicity of…Swiftui11 min readSwiftui11 min read
Published in Better Programming·Aug 18, 2022Member-onlyMV State Pattern — A Better Way of Building SwiftUI AppsIntroducing the MV Pattern — I started working with SwiftUI framework in 2019. Like most developers, I also jumped on the MVVM bandwagon. I wrote books on it, gave presentations and even created a lot of videos. Although I managed to get MVVM working with SwiftUI in almost all of my projects. But it was…Swiftui11 min readSwiftui11 min read
Published in Better Programming·Jul 29, 2022Member-onlySwiftUI View is also a View ModelComparison with WPF framework — In this post, I will cover how a SwiftUI View is not only a view but also a ViewModel. We will compare it with WPF framework and see how SwiftUI already has built-in support for ViewModel right within the view. This means that in most cases, you don’t need to…Swiftui4 min readSwiftui4 min read
Jun 30, 2022Member-only@EnvironmentObject in Views May Not be a Good Idea But Avoiding Them is Probably Much WorseIn SwiftUI, @EnvironmentObject allows you to create global state that can be shared and manipulated from any view in your application. We tend to put @EnvironmentObject in our views and directly access the global state. This creates a tight coupling between the view and the @EnvironmentObject, but avoiding this approach…Swiftui4 min readSwiftui4 min read
May 2, 2022Surviving the Coding Bootcamp — From no coding experience to earning a six-figure salaryWhat if there is a school, which only focuses on skills you need to become a software developer. A school that will take 4–6 months to complete, instead of 4–5 years. A school that will cost a fraction of the price of a traditional college. A school that will have…Coding2 min readCoding2 min read
Mar 28, 2022NEW COURSE — Introduction to Server Driven UI in SwiftWhat if there is a way to update the user interface of your app instantly, without having to submit a new version? Companies like Airbnb, Spotify, Flipkart, Swiggy and several others use a technique called Server Driven UI, which allows them to remotely update their user interfaces based on the…I OS App Development3 min readI OS App Development3 min read