The Startup
Published in

The Startup

Writing Synchronous Code in Swift

Photo by Anton Darius on Unsplash

When you write mobile apps in Swift, you usually have a lot of background work. I’ve been working as a mobile developer for almost 10 years and I can hardly remember a single project without Internet requests. Each Internet request requires time to be processed. Usually an unknown amount of time, possibly, endless.

If you do such work in the main or UI (which is the same) thread, your UI will get stuck…




Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

ViewModels in Swift & Kotlin

Implementing a Design System compatible with UIKit and SwiftUI

How iOS Apps Adapt to the iPhone X Screen Size

How to Build iOS Chatbot with Dialogflow?

Issues with CocoaPods

Swift + Strings Organization - Good Practices

Ios 12 Beta Profile Download

Test Alerts Using the Alert Verifier

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
Alex Nekrasov

Alex Nekrasov

Game and software developer with more than 15 years experience. Founder and CEO at Mariposa Studios, freelancer.

More from Medium

[42] The app is almost finished

Transhumanism in Texhnolyze

Turning up the volume: Blockchain projects aim to disrupt the music industry

Morally Bankrupt : What Sanctions Against Russian Oligarchs Really Reveal About the West