This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
enum Scene { | |
// Sub-group of scenes related to each other | |
// E.g.: all scenes part of a login process | |
case firstScene(FirstSceneViewModel) | |
case secondScene(SecondSceneViewModel) | |
// Another sub-group of scenes related to each other | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class Singleton { | |
static let shared = Singleton() | |
private init() { } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RxSwift | |
import RxSwiftExt | |
enum AuthenticationStatus { | |
case none | |
case error(AuthServiceError) | |
case user(String) | |
} | |
final class AuthManager { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RxSwift | |
import RxCocoa | |
import Action | |
final class ViewController: UIViewController, BindableType { | |
// UI Elements | |
fileprivate var aButton = ViewController._aButton() | |
fileprivate var anotherButton = ViewController._aButton() | |
fileprivate let logo = ViewController._logo() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RxSwift | |
import Action | |
enum SceneStateOutput { | |
case idle | |
case sendingNoRecipient | |
case sendingSomeRecipients(sendingList: [String: String]) | |
case sending | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RxSwift | |
import Action | |
protocol MyViewModelInputsType { | |
// Inputs headers | |
} | |
protocol MyViewModelOutputsType { | |
// Outputs headers | |
} |
NewerOlder