Using Lenses in Swift

It makes things clearer, I guess?

Steven Curtis


Photo by Bud Helisson on Unsplash

Before we start

Difficulty: Beginner | Easy | Normal | Challenging

This article covers Lenses in Swift, which are functional getters and setters used to access and modify immutable object. This can be useful when you are working with immutable objects and want to access or modify specific parts of the object without…