Powerful Advanced Swift Techniques for Complex Apps
Sep 21, 2021, 5:18 AM
Any iOS developer, at some point, feels the need to make the step from basic to advanced concepts. You can get a lot of mileage from the fundamentals of Swift and iOS development. But working on complex projects demands a new set of tools...
Become an iOS Developer in 2021: The Ultimate Guide
Apr 12, 2021, 9:35 AM
The mobile market is exploding, and iOS developers are in high demand. The talent shortage keeps driving salaries higher and higher, even for entry-level positions. Software development is also one of the lucky jobs that you can do...
Network Requests and REST APIs in iOS with Swift (Protocol-Oriented Approach)
Feb 26, 2021, 6:27 AM
Networking is a requirement for most modern iOS apps. Networked apps usually interface with a remote web service that provides data. And often, such a web service is a REST API that returns data in JSON format. Writing the networking layer...
The Strategic SwiftUI Data Flow Guide (+ Infographic)
Jan 5, 2021, 7:08 AM
SwiftUI offers several mechanisms to pass data between views. Such abundance can make it hard to decide which data flow mechanism fits any particular situation. Those decisions cannot be taken in isolation. As in many other cases, we need...
MVVM in iOS with SwiftUI (Detailed Example + Pitfalls)
Nov 12, 2020, 9:20 AM
Since the introduction of SwiftUI, the MVVM pattern has seen a new renaissance. Many developers believe that this particular pattern fits well with the SwiftUI data flow. MVVM certainly has some good ideas, but it also brings along...
JSON Decoding in Swift with Codable: A Practical Guide
Sep 15, 2020, 4:48 AM
Encoding and decoding data is a fundamental part of iOS apps. That is especially true for the JSON data we get from REST APIs. In the past, decoding JSON in iOS apps required a lot of boilerplate code and sometimes fancy techniques. But...
The Essential Guide to Unit Testing in iOS
Aug 11, 2020, 5:24 AM
Many developers find unit testing confusing. This is made worse by the advanced techniques you need to test classes or asynchronous code, like the one for network requests. In reality, at the base of unit testing, there are simple...
Master Swift Generics: A practical guide to code reuse
Jul 1, 2020, 5:48 AM
Generics are a great feature of Swift that allow you to generalize and reuse code in ways that would not be possible otherwise. They are also a quite advanced feature and become a roadblock for many developers. The iOS SDK uses generic...
A Practical SwiftUI Kickstart
May 30, 2020, 5:58 AM
SwiftUI is a revolutionary way to create user interfaces on iOS and other Apple platforms. It introduces a new declarative syntax that allows you to build user interfaces packed with features quickly. In this article, I will show you an...
Weak Self in Swift Made Easy: What it is and why it’s needed
Mar 2, 2020, 9:47 AM
When developing iOS apps in Swift, you are bound, sooner or later, to encounter weak self references. That’s especially true in the callbacks of network requests. At first, weak self references might seem puzzling and, sometimes, annoying....
Computed properties in Swift: A basic feature for safer and cleaner code
Feb 24, 2020, 11:21 AM
Computed properties are one of the basic features of the Swift language. But despite their simplicity, they are a great tool to keep your code clean and free of bugs. I rely heavily on computed properties for any code I write. Contents...
Model-View-Controller in iOS: A Blueprint for Better Apps
Jan 28, 2020, 6:27 AM
Since the introduction of SwiftUI, I have seen many developers write all their code inside views. Unfortunately, the simplicity of the framework seems to encourage a return of many poor practices. But you do not build robust, maintainable...