Swift: Deconstruct SPF: Strings and SubStrings

Learning Swift: Passing substrings to functions

I have been working on my SPF project in Swift of late. As part of this I have started to deal with substrings. “A slice of a string” according to Apple Documentation. In dealing with this, I have found myself quite often converting substrings back to normal strings. Today we will look at how we can pass substrings directly by making our functions generic.

[Read More]