Photo by Danielle MacInnes on Unsplash

Hi iOS Developers,

I’m guessing we have all experienced the pain of spending a lot of time implementing a function, only to realize later that Swift has a built-in function that does the same thing. …

Photo by Jon Tyson on Unsplash

Hi iOS Developers,

In one of my previous articles, I discussed some powerful protocols to take your code to the next level. Today, I’m going to tell you about some handy keywords to streamline your code. …

Photo by Ian Stauffer on Unsplash


Two years ago, I was still a junior iOS developer. As a junior developer, I worked hard from 9 to 5 every working day. I worked during the day and studied at night. Then I started writing for, …

Photo by Ridham Nagralawala on Unsplash


In WWDC 2021, Apple introduced async functions to Swift 5.5. Async functions allow us to run complex tasks asynchronously, just like some other programming languages, such as JavaScript. Asynchronous functions must be defined with the async keyword, to call asynchronous functions, we need to use the await keyword.

Why do we need asynchronous functions?


Photo by Aleksander Vlad on Unsplash


SwiftUI is all about states. Common property wrappers are State, EnvironmentObject, AppStorage, StateObject and ObservedObject, etc. Views in SwiftUI are structs. Structs aren't designed to be mutatable. Initially, once a view is rendered, it won’t be changed. But, in most cases, views contain dynamic data. They will be updated…

Photo by Kenny Orr on Unsplash


From the feedback I’ve gotten already, it looks like readers really liked my previous story, Swift 5: UIKit is Dying-Part 1. People are afraid of changes. When Swift first came out, people didn’t believe in it. People are generally fearful of change. But now, after a few years, everyone…

Photo by Michael Förtsch on Unsplash

Hi iOS Developers,

SwiftUI 3.0 is right around the corner. Among the many cool features, Apple recently added, it is apparent that SwiftUI is going to eliminate the need to use UIKit. Of course, SwiftUI is still in its early stages, so it may still take some time for it…

Photo by Markus Spiske on Unsplash

Hey iOS developers,

Are you working on multiple projects? Do you write repetitive code across different projects? For example, each of your apps may have a sign-in and sign-up page, Settings page or messaging page, etc. The UIs may vary but the logic behind the scene can be very similar…

Photo by Becca Tapert on Unsplash

Hi iOS developers,

Data Structures are containers that are used to organize and store data in the computer so that we can efficiently perform operations. They are the most fundamental components of programming. The best known and most used data structures are Array, Stacks, and Queues, among others. Today, I’m…

Dylan Chen

iOS Engineer at Lunchbox Technologies. Buy me a coffee at:

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store