What’s new in Swift(5.2 to 5.8)?

Swift version 5.8
1. @backDeployed:
The @backDeployed attribute is a powerful tool that can help you make your frameworks more compatible with older OS versions.

Swift version 5.7

2. if let shorthand for unwrapping optionals: This means we can now write code like this:

var name: String? = "Linda"
if let name {
print("Hello, \(name)!")
}

3. Async and Await

4. Actor

5. CodingKeyRepresentable: It allows to encoding and decoding of Dictionary values keyed, rather than encoding and decoding the dictionary

6. @MainActor

--

--

No responses yet