Skip to content

Instantly share code, notes, and snippets.

@devxoul
Created March 31, 2018 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devxoul/20d65493347430bfe084ab07bf1c1379 to your computer and use it in GitHub Desktop.
Save devxoul/20d65493347430bfe084ab07bf1c1379 to your computer and use it in GitHub Desktop.
import ReactorKit
import RxSwift
final class UserViewReactor: Reactor {
enum Action {
case follow
}
enum Mutation {
case setFollowing(Bool)
}
enum State {
var isFollowing: Bool
}
let initialState: State = State(isFollowing: false)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment