-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: #141 mvi 구조로 explore 탭 리팩토링
- Loading branch information
1 parent
c2e2016
commit c02e3ef
Showing
7 changed files
with
180 additions
and
86 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
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
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
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
31 changes: 31 additions & 0 deletions
31
Spoony-iOS/Spoony-iOS/Source/Feature/Explore/Store/ExploreIntent.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,31 @@ | ||
// | ||
// ExploreIntent.swift | ||
// Spoony-iOS | ||
// | ||
// Created by 최주리 on 1/23/25. | ||
// | ||
|
||
import Foundation | ||
|
||
enum ExploreIntent { | ||
case onAppear | ||
|
||
// Location Bottom Sheet | ||
case navigationLocationTapped | ||
case locationTapped(SeoulType) | ||
case selectLocationTapped | ||
case closeLocationTapped | ||
case isPresentedLocationChanged(Bool) | ||
case isSelectLocationDisabledChanged(Bool) | ||
|
||
// Filter Bottom Sheet | ||
case filterButtontapped | ||
case filterTapped(FilterType) | ||
case closeFilterTapped | ||
case isPresentedFilterChanged(Bool) | ||
|
||
// Main | ||
case categoryTapped(CategoryChip) | ||
case cellTapped(FeedEntity) | ||
|
||
} |
29 changes: 29 additions & 0 deletions
29
Spoony-iOS/Spoony-iOS/Source/Feature/Explore/Store/ExploreState.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,29 @@ | ||
// | ||
// ExploreState.swift | ||
// Spoony-iOS | ||
// | ||
// Created by 최주리 on 1/23/25. | ||
// | ||
|
||
import Foundation | ||
|
||
struct ExploreState { | ||
var exploreList: [FeedEntity] = [] | ||
var spoonCount: Int = 0 | ||
|
||
//TODO: 현재 위치 받아와서 바꾸기 | ||
var selectedLocation: SeoulType = .gangnam | ||
var tempLocation: SeoulType? | ||
|
||
var selectedFilter: FilterType = .latest | ||
|
||
var navigationTitle: String = "" | ||
|
||
var categoryList: [CategoryChip] = [] | ||
var selectedCategory: CategoryChip? | ||
|
||
var isPresentedLocation: Bool = false | ||
var isPresentedFilter: Bool = false | ||
|
||
var isSelectLocationButtonDisabled: Bool = true | ||
} |
Oops, something went wrong.