Implementation of Clean Architecture using FRP

Implementation of Clean Architecture using FRP

Talk by Daria Kovalenko

Даша расскажет о реализации принципов Clean Architecture с использованием FRP (RxSwift).
Что будет:
- решение типовых задач и проблем
- лайфхаки и операторы
Чего не будет:
- унылой теории

This talk was made for CocoaFriday #4 ( https://cocoaheads.org.ua/cocoafriday/4) which took place Jun 14, 2019

Video: https://youtu.be/bTwvSDZhs3I

Db84cf61fdada06b63f43f310b68b462?s=128

CocoaHeads Ukraine

June 14, 2019
Tweet

Transcript

  1. 2.
  2. 4.
  3. 6.

    Store - fetches data from network - stores data in

    local storage - updates data - creates/deletes stores - switches to other stores
  4. 7.
  5. 8.

    Page - fetches data from store - transforms store data

    for presentation - transforms store data to subpages - sends updates to store - owns store - generates other pages
  6. 11.
  7. 14.
  8. 16.
  9. 17.
  10. 18.
  11. 19.
  12. 29.

    UIViewController Page User action Next Page Controller Navigator Creates next

    UIViewController Router Next Page Presents next UIViewController
  13. 33.
  14. 34.

    Conclusions - independent layers - changes of store does not

    change UI and vice versa - different ViewControllers can be built in different ways (storyboards, nibs, pin layouts etc) - UI components can be wrapped to RxCocoa and easy binded - needs extra input/output models between layers - need to handle side effects of bindings - control disposeBag for binding on different type of UI - UITableViewCells, subviews to avoid multiple bindings
  15. 35.