Ch. 2.4 Working with Strings in Swift, Prof. G's SwiftUI Course (2025)
HTML-код
- Опубликовано: 8 фев 2025
- Learn multiple techniques for manipulating Strings, cleaning data, and comparing values. These include: .contains(), .hasPrefix(), .hasSuffix(), .removeFirst(), .removeLast(), .replacingOccuranes(of:, with:), .uppercased(), .lowercased(), .capitalized, and Iterating through Strings. We'll also create a String from a repeated value, and we'll learn to use .reversed() to traverse a String backwards, and create an inverted String. Finally, we'll end with a challenge that we'll solve in the next lesson where we introduce and even more efficient solution with the .map function. The code we create in the challenges will be used in the WordGarden hangman-style game app that we're building in this challenge.
Part of a university course by Prof. John Gallaugher designed for the absolute beginner, where students will learn to program using Swift + SwiftUI. The course will move from no assumed prior programming experience while students learn fundamental, then intermediate and advanced concepts, culminating in a full stack app. Full free course playlist at:
bit.ly/prof-g-...