Skip to content

Expanding example - Delete user? #12

Open
@sgtsquiggs

Description

@sgtsquiggs

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 {
      ??
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions