native popups

This commit is contained in:
eevee committed 2024-04-26 00:51:32 +03:00
1 parent e9bd4e4e53
commit acfee7a357
6 files changed
+66 -31

No files matched your search

@@ -0,0 +1,7 @@
import Foundation
@objc protocol SPTEncorePopUpDialog {
func `init`() -> SPTEncorePopUpDialog
func update(_ popUpModel: SPTEncorePopUpDialogModel)
func setEventHandler(_ handler: @escaping () -> Void)
}
@@ -0,0 +1,11 @@
import Foundation
@objc protocol SPTEncorePopUpDialogModel {
func initWithTitle(
_ title: String,
description: String,
image: Any?,
primaryButtonTitle: String,
secondaryButtonTitle: String?
) -> SPTEncorePopUpDialogModel
}
@@ -0,0 +1,7 @@
import Foundation
@objc protocol SPTEncorePopUpPresenter {
static func shared() -> SPTEncorePopUpPresenter
func presentPopUp(_ popUp: SPTEncorePopUpDialog)
func dismissPopupWithAnimate(_ animate: Bool, clearQueue: Bool, completion: Any?)
}