PLAY PODCASTS
Swift Optional String Or Empty Extension
Episode 78

Swift Optional String Or Empty Extension

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

Inside iOS Dev · Alex Bush

July 20, 20217m 7sExplicit

Audio is streamed directly from the publisher (dts.podtrac.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

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

Topics

iosswiftios developmentoptional