master merged

This commit is contained in:
Daniel Arantes Loverde
2026-06-03 14:52:27 -03:00
parent 980a106661
commit f51319b486
112 changed files with 1051 additions and 1139 deletions

View File

@@ -1,26 +1,10 @@
import Foundation
import SwiftUI
#if os(Android)
@MainActor
final class SnackbarCenter {
static let shared = SnackbarCenter()
var current: SnackbarMessage?
func show(
title: String,
style: SnackbarStyle = .info,
icon: String? = nil,
duration: TimeInterval = 3.5,
action: (() -> Void)? = nil
) {
action?()
}
func handleTap() {}
func dismiss(animated: Bool) {}
extension Notification.Name {
static let snackbarDidChange = Notification.Name("snackbarDidChange")
}
#else
@MainActor
final class SnackbarCenter: ObservableObject {
static let shared = SnackbarCenter()
@@ -71,7 +55,6 @@ final class SnackbarCenter: ObservableObject {
}
}
}
#endif
enum SnackbarStyle: Sendable {
case info