-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat [#354] 푸시알림 및 건의사항 반영 + 오류 수정 #359
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1949ed7
[Fix] #354 - 옐로하기 투표 포인트 오류 해결
Heyjooo bcc93c4
Feat #354 - 추가 푸시알림 구현
Heyjooo dcb6790
Feat #354 - 다시 보지 않기 레이블에도 탭 제스처 추가
Heyjooo 1e6f443
Feat #354 - SceneDelegate에서 타임라인 푸시 받을 때 main 스레드 처리
Heyjooo 61b8f32
Feat #354 - 푸시알림 백그라운드 탭 로직 수정
Heyjooo 2011422
Merge branch 'develop' into feat/#354
Heyjooo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,38 @@ final class AroundView: BaseView { | |
} | ||
} | ||
var scrollCount = 0 | ||
var isUserSenderVote = false | ||
var isUserSenderVote = false { | ||
didSet { | ||
if isUserSenderVote { | ||
filterButtonLabel.text = StringLiterals.Around.myYello | ||
filterButtonStackView.spacing = 0 | ||
filterButtonStackView.snp.updateConstraints { | ||
$0.leading.equalToSuperview().inset(8.adjustedWidth) | ||
} | ||
aroundEmptyView.emptyDescriptionLabel.setTextWithLineHeight( | ||
text: StringLiterals.Recommending.Empty.timeLineMyTitle, | ||
lineHeight: 24) | ||
} else { | ||
filterButtonLabel.text = StringLiterals.Around.allYello | ||
filterButtonStackView.spacing = 6.adjustedWidth | ||
filterButtonStackView.snp.updateConstraints { | ||
$0.leading.equalToSuperview().inset(20.adjustedWidth) | ||
} | ||
aroundEmptyView.emptyDescriptionLabel.setTextWithLineHeight( | ||
text: StringLiterals.Recommending.Empty.timeLineAllTitle, | ||
lineHeight: 24) | ||
} | ||
|
||
self.aroundPage = -1 | ||
self.aroundCount = -1 | ||
self.isFinishPaging = false | ||
self.fetchingMore = false | ||
self.aroundTableView.reloadData() | ||
self.aroundModelDummy = [] | ||
self.around() | ||
self.updateView() | ||
} | ||
} | ||
|
||
var aroundModelDummy: [FriendVote] = [] | ||
|
||
|
@@ -190,6 +221,10 @@ final class AroundView: BaseView { | |
} | ||
} | ||
|
||
private func setAroundViewMode() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P4 여기 이 빈 함수는 나중에 사용되는걸까요?! 아니라면 없애도 좋을 것 같아용! |
||
|
||
} | ||
|
||
// MARK: Custom Function | ||
/// 친구가 없을 때 초대 뷰를 띄우는 로직 | ||
func updateView() { | ||
|
@@ -328,36 +363,5 @@ extension AroundView: UITableViewDataSource { | |
extension AroundView { | ||
@objc private func filterButtonTapped() { | ||
isUserSenderVote.toggle() | ||
|
||
if isUserSenderVote { | ||
filterButtonLabel.text = StringLiterals.Around.myYello | ||
filterButtonStackView.spacing = 0 | ||
filterButtonStackView.snp.updateConstraints { | ||
$0.leading.equalToSuperview().inset(8.adjustedWidth) | ||
} | ||
aroundEmptyView.emptyDescriptionLabel.setTextWithLineHeight( | ||
text: StringLiterals.Recommending.Empty.timeLineMyTitle, | ||
lineHeight: 24) | ||
aroundEmptyView.inviteButton.setTitle(StringLiterals.Recommending.Empty.myInviteButton, for: .normal) | ||
} else { | ||
filterButtonLabel.text = StringLiterals.Around.allYello | ||
filterButtonStackView.spacing = 6.adjustedWidth | ||
filterButtonStackView.snp.updateConstraints { | ||
$0.leading.equalToSuperview().inset(20.adjustedWidth) | ||
} | ||
aroundEmptyView.emptyDescriptionLabel.setTextWithLineHeight( | ||
text: StringLiterals.Recommending.Empty.timeLineAllTitle, | ||
lineHeight: 24) | ||
aroundEmptyView.inviteButton.setTitle(StringLiterals.Recommending.Empty.inviteButton, for: .normal) | ||
} | ||
|
||
self.aroundPage = -1 | ||
self.aroundCount = -1 | ||
self.isFinishPaging = false | ||
self.fetchingMore = false | ||
self.aroundTableView.reloadData() | ||
self.aroundModelDummy = [] | ||
self.around() | ||
self.updateView() | ||
} | ||
} |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 어제 말했던 것처럼 didSet 안의 내용을 최소화 하기 위해서 따로 함수로 만들어서 불러주면 좋을 것 같아요!!