Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.36 KB

README.md

File metadata and controls

29 lines (21 loc) · 1.36 KB

Chained Async Operation ⛓

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.

⚡️ Demo

🤝 Chained Operations

  1. Fetch random word from here
  2. Search for matching GIF from Giphy API for the random word
  3. Download the GIF from the URL

🚀 Highlights

  • Chained asynchronous result based operations
  • Cancellable operations
  • No third-party dependencies/libraries
  • MVVM