From e8cbd1e8ac4fb7b30977a741b1e8d9053fe31826 Mon Sep 17 00:00:00 2001 From: baegteun Date: Sat, 14 Sep 2024 17:48:49 +0900 Subject: [PATCH] =?UTF-8?q?:zap:=20::=20[#148]=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EC=84=B1=EB=8A=A5=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Feature/SettingsFeature/Sources/SettingsCore.swift | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Projects/Feature/SettingsFeature/Sources/SettingsCore.swift b/Projects/Feature/SettingsFeature/Sources/SettingsCore.swift index 4d65947..c9d0719 100644 --- a/Projects/Feature/SettingsFeature/Sources/SettingsCore.swift +++ b/Projects/Feature/SettingsFeature/Sources/SettingsCore.swift @@ -190,6 +190,7 @@ public struct SettingsCore: Reducer { return .none } + .alertFeatures() .subFeatures() } } @@ -197,11 +198,15 @@ public struct SettingsCore: Reducer { extension Reducer where State == SettingsCore.State, Action == SettingsCore.Action { func subFeatures() -> some ReducerOf { self - .ifLet(\.$alert, action: /Action.alert) - .ifLet(\.$confirmationDialog, action: /Action.confirmationDialog) .ifLet(\.$schoolSettingCore, action: /Action.schoolSettingCore) { SchoolSettingCore() } .ifLet(\.$allergySettingCore, action: /Action.allergySettingCore) { AllergySettingCore() } .ifLet(\.$modifyTimeTableCore, action: /Action.modifyTimeTableCore) { ModifyTimeTableCore() } .ifLet(\.$tutorialCore, action: /Action.tutorialCore) { TutorialCore() } } + + func alertFeatures() -> some ReducerOf { + self + .ifLet(\.$alert, action: /Action.alert) + .ifLet(\.$confirmationDialog, action: /Action.confirmationDialog) + } }