Artwork

Content provided by Alex Bush, Sandeep Aggarwal, Alex Bush, and Sandeep Aggarwal. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Alex Bush, Sandeep Aggarwal, Alex Bush, and Sandeep Aggarwal or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

Swift Optional String Or Empty Extension

7:07
 
Share
 

Manage episode 297892586 series 1436686
Content provided by Alex Bush, Sandeep Aggarwal, Alex Bush, and Sandeep Aggarwal. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Alex Bush, Sandeep Aggarwal, Alex Bush, and Sandeep Aggarwal or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

In this episode I walk you through how to create an extension on Optional String type to default nil strings to an empty string. This little shortcut can greatly reduce the amount of ifelsing and if let unwrapping on optional strings in your Swift codebase.

This episode's video screencast: https://youtu.be/qzuFvUVuH9U

This episode's audio podcast: https://insideiosdev.com/episodes/swift-optional-string-or-empty-extension

Inside iOS Dev YouTube Channel: https://www.youtube.com/channel/UC6zcA3dAMUWN8E2_dlg_WyQ

  continue reading

88 episodes

Artwork

Swift Optional String Or Empty Extension

Inside iOS Dev

188 subscribers

published

iconShare
 
Manage episode 297892586 series 1436686
Content provided by Alex Bush, Sandeep Aggarwal, Alex Bush, and Sandeep Aggarwal. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Alex Bush, Sandeep Aggarwal, Alex Bush, and Sandeep Aggarwal or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

In this episode I walk you through how to create an extension on Optional String type to default nil strings to an empty string. This little shortcut can greatly reduce the amount of ifelsing and if let unwrapping on optional strings in your Swift codebase.

This episode's video screencast: https://youtu.be/qzuFvUVuH9U

This episode's audio podcast: https://insideiosdev.com/episodes/swift-optional-string-or-empty-extension

Inside iOS Dev YouTube Channel: https://www.youtube.com/channel/UC6zcA3dAMUWN8E2_dlg_WyQ

  continue reading

88 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide