---
title: "Discussion on \"Swift 5.7: Shorthand for optional unwrapping\" | Hashnode"
description: "Discussion on \"Swift 5.7: Shorthand for optional unwrapping\". Swift 5.7 comes with a new feature that saves our time\nTo unwrap an optional value we used to do\nif let username = username {\n  print(usernname)\n}\nAfter Swift 5.7 new shorthand, we can easily do\nif let username {\n  print(usernname)\n}\nWithout repeatin..."
url: "https://hashnode.com/posts/swift-shorthands-for-optional-unwrapping/631aecea5abe8613b3d3400c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Swift 5.7: Shorthand for optional unwrapping](https://ahmedelgendy.com/swift-shorthands-for-optional-unwrapping?utm_source=hashnode&utm_medium=feed)

Swift 5.7 comes with a new feature that saves our time To unwrap an optional value we used to do if let username = username { print(usernname) } After Swift 5.7 new shorthand, we can easily do if let username { print(usernname) } Without repeatin...

Sep 9, 2022 · 1 min read · ahmedelgendy.com  
Updated Sep 14, 2022  
Read the article

-   [#ios](https://hashnode.com/tag/ios)
-   [#swift](https://hashnode.com/tag/swift)

## Written by

[Ahmed Elgendy](https://hashnode.com/@ahmedelgendy)

@ahmedelgendy · Istanbul

  
[View profile](https://hashnode.com/@ahmedelgendy)

iOS Software Engineer

iOS Software Engineer (Swift, SwiftUI) with +4 years of experience working with international teams and clients, Published +10 apps, seeking to build world-class apps

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
