-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Refactor] SettingView 리팩토링 / SettingReducer 구현 #81
Open
CJiu01
wants to merge
20
commits into
develop
Choose a base branch
from
refactor/#78
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+344
−202
Conversation
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
- state, action 정의
- togglePushAuthorization - pushAuthorizationResponse - configureSettingTapped - requestPushAuthorizationResponse
alert(legacy code)
추후 homeView로 이동
Type 'SettingReducer.Path.State' does not conform to protocol 'Equatable'
.logout 액션은 전달되나, state 값 바뀌지않음
- appState를 .loggedOut으로 설정 - SettingView에서 AppView에 store 바인딩
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 Summary
✍️ Description
💡 PR Point
SettingView
는title
과SettingList
로 구성되어 있습니다.SettingList
를View -> List
로 리팩토링할지 고민하다 우선 기존 구현되어있는 View 사용하였습니다. UI만 보면 List로 구현되어있을거라는 생각이 드는데 List로 바꾸는 것이 좋을까요? (현재ListRowView
부분이 조금 지저분한감이 있나요?.?)enum listItem
) 정의listItemTapped: (listItem) -> Void
클로저를 통해 이벤트 전달로그아웃
AlertState
를 옵셔널로 선언하여 해당 상태가nil
이 아닌 경우Alert
를 띄우도록 구현하였습니다..alert(.presented(.logout))
)AppReducer
의 상태를 변경하여(state.appState = .loggedOut(LoginReducer.State())
) Login으로 이동합니다.YDSToast
를 띄웁니다.성적알림
newValue
의 T/F를 기준으로 분기됩니다. (.togglePushAuthorization
)알림On
&permission==F
) 인 경우,Alert
를 띄웁니다.toggle
이 On/Off됩니다.약관 WebView
Path
,StackState
를 이용하여Navigation
을 통해WebView
로 이동합니다.WebView
/WebReducer
를 별도로 구현하였습니다.@Dependency(\.dismiss)
를 이용하여 해당 뷰를 닫습니다.📚 Reference
🔥 Test
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-01-30.at.01.39.12.mp4
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-01-30.at.01.42.19.mp4
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-01-30.at.01.47.48.mp4