Contents
- Getting started
- Switch
- JSON
- Enums
- Protocols
- Structs
- Closures
- Error Handling
- Arrays
- Arrays
- Basics of Arrays
- Extracting values of a given type from an Array with flatMap
- Flattening the result of an Array transformation with flatMap
- Combining an array's elements with reduce
- Lazily flattening a multidimensional Array with flatten
- Filtering out nil from an Array transformation with flatMap
- Subscripting an Array with a Range
- Removing element from an array without knowing its index
- Sorting an Array of Strings
- Accessing indices safely
- Filtering an Array
- Finding the minimum or maximum element of an Array
- Sorting an Array
- Transforming the elements of an Array with map
- Useful Methods
- Value Semantics
- Grouping Array values
- Modifying values in an array
- Accessing Array Values
- Comparing 2 Arrays with zip
- Dictionaries
- Extensions
- Sets
- Working with C and Objective-C
- Functions
- Numbers
- Classes
- Conditionals
- Variables, properties
- Variables Properties
- Creating a Variable
- Property Observers
- Lazy Stored Properties
- Property Basics
- Computed Properties
- Local and Global Variables
- Type Properties
- Property wrappers
- Strings and characters
- Strings and Characters
- String Character Literals
- Concatenate strings
- String Encoding and Decomposition
- Examine and compare strings
- Reversing Strings
- Check if String contains Characters from a Defined Set
- String Iteration
- Unicode
- Splitting a String into an Array
- Formatting Strings
- Converting Swift string to a number type
- Uppercase and Lowercase Strings
- Convert String to and from Data NSData
- Remove characters from a string not defined in Set
- Count occurrences of a character in a string
- Remove leading and trailing WhiteSpace and NewLine
- Optionals
- Tuples
- Booleans
- Memory management
- Generics
- Advanced operators
- Access control
- Associated objects
- Loops
- Reflection
- OptionSet
- Method swizzling
- Concurrency
- Concurrency
- async and await
- Structured concurrency with async let and TaskGroup
- Tasks and cancellation
- Actors
- Sendable and Swift 6 data-race safety
- AsyncSequence, AsyncStream and continuations
- Mutex and Atomic with the Synchronization module
- Obtaining a Grand Central Dispatch GCD queue
- Concurrent Loops
- Running tasks in a Grand Central Dispatch GCD queue
- Running Tasks in an OperationQueue
- Creating High-Level Operations
- Initializers
- Getting started with Protocol Oriented Programming
- Functional programming
- Style conventions
- Type casting
- Logging in Swift
- Performance
- RxSwift
- The defer statement
- Design Patterns - Creational
- Swift Package Manager
- Regular expressions
- Documentation markup
- AES encryption
- PBKDF2 key derivation
- Typealias
- Cryptographic hashing
- Dependency Injection
- Functions as first class citizens
- Blocks
- Caching on disk space
- Algorithms with Swift
- Unsafe buffer pointers
- Swift Advanced functions
- Completion Handler
- Design Patterns - Structural
- Swift HTTP server by Kitura
- Generate UIImage of Initials from string
- Contributors