Understanding Opaque Return Types in Swift
Explains opaque return types in Swift 5.1, covering their syntax, benefits for API encapsulation, and differences from protocol return types.
Alfian Losari is a self-taught software engineer specializing in Apple platform development, including iOS, macOS, watchOS, and visionOS. A former Lead GoFood iOS Engineer at Gojek, he builds open-source software and teaches app development through his XCA YouTube channel.
50 articles from this blog
Explains opaque return types in Swift 5.1, covering their syntax, benefits for API encapsulation, and differences from protocol return types.
A tutorial on building a video game database iOS app using SwiftUI and the IGDB API, covering data fetching, UI design, and navigation.
A tutorial on using Dependency Injection to mock network services in iOS View Controllers for better testability and separation of concerns.
A tutorial on using Apple's Grand Central Dispatch (GCD) DispatchGroup and DispatchSemaphore to manage and synchronize multiple asynchronous tasks in iOS development.
A guide to refactoring iOS app navigation using the Coordinator pattern to decouple view controllers and improve code architecture.
A tutorial on deploying a Swift HTTP server as a serverless container to Google Cloud Run using Docker, covering setup and deployment steps.
A tutorial on using Swift 5's new Result type to simplify asynchronous API request handling and error management in iOS development.
A tutorial on refactoring an iOS app from MVC to MVVM architecture using the RxSwift library for reactive data binding.
A tutorial on building a responsive iOS movie list app using UICollectionViewFlowLayout, adapting to different screen sizes and layouts.
A tutorial on building an iOS app to scan NFC tags using Apple's CoreNFC framework, covering reading tags and displaying product details.