Skip to content

Commit 31a0321

Browse files
committed
refactor: legacy toast modifier 제거
1 parent e20842b commit 31a0321

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

  • Application/DevLogPresentation/Sources/Common/Component

Application/DevLogPresentation/Sources/Common/Component/Toast.swift

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,6 @@
77

88
import SwiftUI
99

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-
3310
@Observable
3411
final class ToastPresenter {
3512
fileprivate static let presenter = ToastPresenter()

0 commit comments

Comments
 (0)