-
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.
Browse files
Browse the repository at this point in the history
Refactor/#141 Explore MVI
- Loading branch information
Showing
9 changed files
with
171 additions
and
89 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
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
30 changes: 30 additions & 0 deletions
30
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,30 @@ | ||
// | ||
// 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) | ||
|
||
// Filter Bottom Sheet | ||
case filterButtontapped | ||
case filterTapped(FilterType) | ||
case closeFilterTapped | ||
case isPresentedFilterChanged(Bool) | ||
|
||
// Main | ||
case categoryTapped(CategoryChip) | ||
case cellTapped(FeedEntity) | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
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,25 @@ | ||
// | ||
// 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 categoryList: [CategoryChip] = [] | ||
var selectedCategory: CategoryChip? | ||
|
||
var isPresentedLocation: Bool = false | ||
var isPresentedFilter: Bool = false | ||
} |
Oops, something went wrong.