MoviaBox/Thimra/Libs/HUD/SPToast.swift
2025-04-21 14:30:28 +08:00

25 lines
550 B
Swift

//
// SPToast.swift
// Thimra
//
// Created by on 2025/4/9.
//
import UIKit
class SPToast: NSObject {
static func config() {
CSToastManager.setTapToDismissEnabled(false)
CSToastManager.setDefaultDuration(2)
CSToastManager.setDefaultPosition(CSToastPositionCenter)
}
static func show(text: String?) {
guard let text = text else { return }
// SPAPPTool.getKeyWindow()?.makeToast(text, duration: 2, position: nil)
SPAPPTool.getKeyWindow()?.makeToast(text)
}
}