We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e20842b commit 31a0321Copy full SHA for 31a0321
1 file changed
Application/DevLogPresentation/Sources/Common/Component/Toast.swift
@@ -7,29 +7,6 @@
7
8
import SwiftUI
9
10
-extension View {
11
- func toast<Label: View>(
12
- isPresented: Binding<Bool>,
13
- duration: TimeInterval = 2,
14
- action: (() -> Void)? = nil,
15
- onDismiss: (() -> Void)? = nil,
16
- @ViewBuilder label: @escaping () -> Label
17
- ) -> some View {
18
- self
19
- .frame(maxWidth: .infinity, maxHeight: .infinity)
20
- .overlay(alignment: .bottom) {
21
- ToastOverlayView(
22
- isPresented: isPresented,
23
- duration: duration,
24
- action: action,
25
- onDismiss: onDismiss,
26
- label: label
27
- )
28
- .padding(.horizontal, 12)
29
- }
30
31
-}
32
-
33
@Observable
34
final class ToastPresenter {
35
fileprivate static let presenter = ToastPresenter()
0 commit comments