Swift
Learn more and get better in Swift using this list of Swift blog posts, tutorials, tips, and tricks.
Sendable and @Sendable closures explained with code examples
Sendable and @Sendable are part of the concurrency changes that arrived in Swift 5.5 and address a challenging problem of ...
Read More
Read More
URLSessionConfiguration: Exploring opt-in configurations
URLSessionConfiguration can be used to initialize URLSession instances in Swift. While in most cases, you'll likely use the default configuration, ...
Read More
Read More
App Store Connect API SDK in Swift: Creating Developer Tools
The new App Store Connect API was announced during WWDC 2018 and made it possible to write applications for App ...
Read More
Read More
Generics in Swift explained with code examples
Generics in Swift allows you to write generic and reusable code, avoiding duplication. A generic type or function creates constraints ...
Read More
Read More
Existential any in Swift explained with code examples
Existential any allows you to define existential types in Swift by prefixing a type with the any keyword. In short, ...
Read More
Read More
Some keyword in Swift: Opaque types explained with code examples
The some keyword in Swift declares opaque types, and Swift 5.1 introduced it with support for opaque result types. Many ...
Read More
Read More
Increase App Ratings by using SKStoreReviewController
SKStoreReviewController allows asking your users for App Store ratings from within the app. Positive ratings can help your app stand ...
Read More
Read More
Memory leaks prevention using an autoreleasepool in unit tests
Memory leaks often happen without notice. Although best practices like using a weak reference to self inside closures help a ...
Read More
Read More
AsyncSequence explained with Code Examples
AsyncSequence is part of the concurrency framework and the SE-298 proposal. Its name implies it's a type providing asynchronous, sequential, ...
Read More
Read More
AsyncThrowingStream and AsyncStream explained with code examples
AsyncThrowingStream and AsyncStream are part of the concurrency framework introduced in Swift 5.5 due to SE-314. Async streams allow you ...
Read More
Read More
Using MetricKit to monitor user data like launch times
The MetricKit framework allows us to collect all kinds of data from our end users, including launch times and hang ...
Read More
Read More
AnyObject, Any, and any: When to use which?
AnyObject and Any got a new option any as introduced in SE-355, making it harder for us developers to know ...
Read More
Read More