Skip to content

Commit 8b73d81

Browse files
committed
Add common success toast status
1 parent 2828d4d commit 8b73d81

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Modules/Sources/ToastClient/Models/ToastMessage.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ public struct ToastMessage: Equatable, Sendable {
4242
}
4343

4444
public extension ToastMessage {
45+
static let actionCompleted = ToastMessage(
46+
text: LocalizedStringResource("Action completed", bundle: .module),
47+
isError: false,
48+
haptic: .success,
49+
duration: 3,
50+
priority: .low
51+
)
52+
4553
static let whoopsSomethingWentWrong = ToastMessage(
4654
text: LocalizedStringResource("Whoops, something went wrong..", bundle: .module),
4755
isError: true,

Modules/Sources/ToastClient/Resources/Localizable.xcstrings

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
{
22
"sourceLanguage" : "en",
33
"strings" : {
4+
"Action completed" : {
5+
"localizations" : {
6+
"ru" : {
7+
"stringUnit" : {
8+
"state" : "translated",
9+
"value" : "Действие выполнено"
10+
}
11+
}
12+
}
13+
},
414
"Whoops, something went wrong.." : {
515
"localizations" : {
616
"ru" : {

0 commit comments

Comments
 (0)