New podcast audio episode's out! "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. insideiosdev.com/episodes/swift… #ios #swift #swiftlang #optional
1
2
3
0
0
video can be found here
@InsideiOSDev Hi Alex, Why not use Swift's nil coalescing operator instead? e.g. let param2 = param2 ?? "" It avoids the if-let/else, the extra variable, and the extension.