Swift String
Swift String is a series of characters. For example "Hello World"
is a string.
The following are the list of tutorials that deal with different concepts of strings, like creating strings, transforming them, etc.
Basics
- Swift – Create a String Variable
- Swift – Create an Empty String
- Swift – String Length
- Swift – Append a String to Another String
- Swift – Concatenate Strings
- Swift – Compare Strings
- Swift – Include Double Quotes in String
- Swift – Include Value of Variable in String
- Swift – Loop over Characters in String
- Swift – Substring
Checks
- Swift – Check if two Strings are Equal
- Swift – Check if two Strings are not Equal
- Swift – Check if String is Empty
- Swift – Check if String contains SubString
- Swift – Check if String starts with a Specific Prefix
- Swift – Check if String ends with a Specific Suffix
- Swift – Check if Variable Type is String Programmatically
Transformations / Modifications
- Swift – Convert String to Lowercase
- Swift – Convert String to Uppercase
- Swift – Insert Character at Specific Index in String
- Swift – Remove Character at Specific Index in String
- Swift – Remove Last Character of String
- Swift – Remove Specific Characters from String
- Swift – Reverse String
- Swift – Split String by Character
Conversions
Conclusion
In this Swift Tutorial, we learned about Strings, its basics, transformations on Strings, conversions, etc.