diff --git a/app-ios/Sources/TimetableFeature/Resource/Localizable.xcstrings b/app-ios/Sources/TimetableFeature/Resource/Localizable.xcstrings index 43fd5afb2..8af4e207e 100644 --- a/app-ios/Sources/TimetableFeature/Resource/Localizable.xcstrings +++ b/app-ios/Sources/TimetableFeature/Resource/Localizable.xcstrings @@ -13,16 +13,6 @@ }, "|" : { - }, - "AddFavorite" : { - "localizations" : { - "ja" : { - "stringUnit" : { - "state" : "translated", - "value" : "ブックマークに追加されました" - } - } - } }, "Timetable" : { "localizations" : { diff --git a/app-ios/Sources/TimetableFeature/TimetableListView.swift b/app-ios/Sources/TimetableFeature/TimetableListView.swift index 3b020c3f2..c9d8ac73a 100644 --- a/app-ios/Sources/TimetableFeature/TimetableListView.swift +++ b/app-ios/Sources/TimetableFeature/TimetableListView.swift @@ -40,7 +40,6 @@ public struct TimetableView: View { } Spacer() } - .toast($store.toast) .background(AssetColors.Surface.surface.swiftUIColor) .frame(maxWidth: .infinity) .toolbar{ diff --git a/app-ios/Sources/TimetableFeature/TimetableReducer.swift b/app-ios/Sources/TimetableFeature/TimetableReducer.swift index fbc4a0c14..37dcf5aae 100644 --- a/app-ios/Sources/TimetableFeature/TimetableReducer.swift +++ b/app-ios/Sources/TimetableFeature/TimetableReducer.swift @@ -14,7 +14,6 @@ public struct TimetableReducer : Sendable{ @ObservableState public struct State: Equatable { var timetableItems: [TimetableTimeGroupItems] = [] //Should be simple objects - var toast: ToastState? public init(timetableItems: [TimetableTimeGroupItems] = []) { self.timetableItems = timetableItems @@ -26,7 +25,7 @@ public struct TimetableReducer : Sendable{ case view(View) case requestDay(DayTab) case response(Result<[TimetableItemWithFavorite], any Error>) - case favoriteResponse(Result) + case favoriteResponse(Result) public enum View : Sendable { case onAppear @@ -101,13 +100,9 @@ public struct TimetableReducer : Sendable{ return .run { send in await send(.favoriteResponse(Result { try await timetableClient.toggleBookmark(id: item.timetableItem.id) - return item.isFavorited })) } - case let .favoriteResponse(.success(isFavorited)): - if !isFavorited { - state.toast = .init(text: String(localized: "AddFavorite", bundle: .module)) - } + case .favoriteResponse(.success): return .none case let .favoriteResponse(.failure(error)): print(error.localizedDescription)