mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
native popups
This commit is contained in:
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?)
|
||||
}
|
||||
Reference in new issue
Block a user