Swift implementation of the Operation
class with added asynchronous behavior and chainable input/output using Swift's Result
type.
This app demonstrates how we can easily chain the result of asynchronous operation by fetching random GIFs. I built this app inspired by Antoine van der Lee's video about operations in Swift (link to his YouTube video)
Note: The implementation of these operations are based on my personal take and modifications on the topic 🌈. Oh and this app also fetches GIF from the Giphy API which requires an API key 🔑 which I kept secret, so please use your own API key instead WKWK.
- Fetch random word from here
- Search for matching GIF from Giphy API for the random word
- Download the GIF from the URL
- Chained asynchronous result based operations
- Cancellable operations
- No third-party dependencies/libraries
- MVVM