-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: #146 신고하기 MVI로 refactoring
- Loading branch information
1 parent
83f5bb3
commit 2a0343e
Showing
4 changed files
with
89 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Spoony-iOS/Spoony-iOS/Source/Feature/Report/Store/ReportIntent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// ReportIntent.swift | ||
// Spoony-iOS | ||
// | ||
// Created by 최주리 on 1/23/25. | ||
// | ||
|
||
import Foundation | ||
|
||
enum ReportIntent { | ||
case reportReasonButtonTapped(ReportType) | ||
case reportPostButtonTapped(Int) | ||
case backgroundTapped | ||
|
||
case descriptionChanged(String) | ||
case isErrorChanged(Bool) | ||
case isDisabledChanged(Bool) | ||
} |
16 changes: 16 additions & 0 deletions
16
Spoony-iOS/Spoony-iOS/Source/Feature/Report/Store/ReportState.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// ReportState.swift | ||
// Spoony-iOS | ||
// | ||
// Created by 최주리 on 1/23/25. | ||
// | ||
|
||
import Foundation | ||
|
||
struct ReportState { | ||
var selectedReport: ReportType = .advertisement | ||
var description: String = "" | ||
|
||
var isError: Bool = true | ||
var isDisabled: Bool = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters