Clean-Swift / CleanStore

A sample iOS app built using the Clean Swift architecture. Clean Swift is Uncle Bob's Clean Architecture applied to iOS and Mac projects. CleanStore demonstrates Clean Swift by implementing the create order use case described by in Uncle Bob's talks.
https://clean-swift.com/clean-swift-ios-architecture/
MIT License
1.91k stars 315 forks source link

Expanding example - Delete user? #12

Open sgtsquiggs opened 8 years ago

sgtsquiggs commented 8 years ago

How would you use clean architecture to, lets say, delete a user from the list of users? Currently I am re-sending the list of users via presentFetchedUsers, but I would rather tell my view controller to delete a single row from the table.

struct ListOrders {
  struct DeleteUser {
    struct Request {
      let index: Int
    }
    struct Response {
      ???
    }
    struct ViewModel {
      ??
    }
  }
}