Created
October 10, 2018 08:48
-
-
Save IsaAliev/a7f058a5da536f2b1eed4e3fc626505e to your computer and use it in GitHub Desktop.
This file contains 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 | |
import Bond | |
class ViewModel: AlertPresentableViewModel { | |
var alertModel = Observable<AlertModel?>(nil) | |
func setup() { | |
DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) { | |
self.alertModel.value = AlertModel(actionModels: [AlertModel.ActionModel.init(title: "OK", style: .default, handler: nil)], title: "Alert example", message: "That's our easy alert.", prefferedStyle: .alert) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment