-
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.
Merge branch 'develop' into feat/archiveCalendar/#210
- Loading branch information
Showing
81 changed files
with
1,404 additions
and
1,638 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,3 +84,5 @@ extension FriendCategoryDTO { | |
return FriendCategory(categoryName: categoryName, colorId: colorId) | ||
} | ||
} | ||
|
||
|
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
66 changes: 66 additions & 0 deletions
66
...tUI/Projects/Feature/Moim/Interface/Sources/FriendInvite/FriendInviteStoreInterface.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,66 @@ | ||
// | ||
// FriendInviteStoreInterface.swift | ||
// FeatureMoim | ||
// | ||
// Created by 권석기 on 11/3/24. | ||
// | ||
|
||
import Foundation | ||
|
||
import DomainFriendInterface | ||
import DomainFriend | ||
|
||
import ComposableArchitecture | ||
|
||
/** | ||
Reducer for FriendInvite(친구초대) Feature | ||
*/ | ||
@Reducer | ||
public struct FriendInviteStore { | ||
private let reducer: Reduce<State, Action> | ||
|
||
public init(reducer: Reduce<State, Action>) { | ||
self.reducer = reducer | ||
} | ||
|
||
@ObservableState | ||
public struct State: Equatable { | ||
public init() {} | ||
|
||
/// 검색어 | ||
public var searchText = "" | ||
|
||
/// 친구목록 | ||
public var friendList: [Friend] = [] | ||
|
||
/// 추가한 친구목록 | ||
public var addedFriend: [Friend] = [] | ||
} | ||
|
||
public enum Action: BindableAction { | ||
|
||
/// 바인딩액션 | ||
case binding(BindingAction<State>) | ||
|
||
/// 검색결과탭 | ||
case searchButtonTapped | ||
|
||
/// 검색결과 응답 | ||
case searchResponse(FriendResponse) | ||
|
||
/// 친구 추가 | ||
case addFriend(Friend) | ||
|
||
/// 초대친구 삭제 | ||
case removeFriend(memberId: Int) | ||
|
||
/// 뒤로가기 | ||
case backButtonTapped | ||
} | ||
|
||
public var body: some ReducerOf<Self> { | ||
BindingReducer() | ||
|
||
reducer | ||
} | ||
} |
Oops, something went wrong.