Skip to content

Commit

Permalink
Merge pull request #264 from dlwns33/release/#218
Browse files Browse the repository at this point in the history
[FEAT] #218 - 명함 그룹 뷰 1차 버그 해결
  • Loading branch information
dlwns33 authored Dec 29, 2021
2 parents 0c7093d + f51b8f1 commit 517e390
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NADA-iOS-forRelease/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>NADA</string>
<string>나다 NADA</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
<outlet property="backButton" destination="ppy-17-v7q" id="mdc-dd-yGB"/>
<outlet property="cardView" destination="0P6-1k-dQm" id="qGN-9y-K4Y"/>
<outlet property="idLabel" destination="J0e-kR-6Zc" id="4il-d0-UMv"/>
<outlet property="idStackView" destination="yM7-jk-cSi" id="W9m-Jo-mDr"/>
<outlet property="optionButton" destination="YU7-vs-utH" id="Jg4-K3-dTV"/>
</connections>
</viewController>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ class AddWithIdBottomSheetViewController: CommonBottomSheetViewController, UITex

extension AddWithIdBottomSheetViewController {
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
textField.resignFirstResponder()
// 서버 연결과 더불어... 검색 결과가 없으면 bottomsheet dismiss 하지 말고 hidden 풀어주기
cardDetailFetchWithAPI(cardID: textField.text ?? "")
return true
}
Expand All @@ -112,6 +110,7 @@ extension AddWithIdBottomSheetViewController {
self.explainLabel.isHidden = false
self.explainLabel.text = "자신의 명함은 추가할 수 없습니다."
} else {
self.addWithIdTextField.resignFirstResponder()
let nextVC = CardResultBottomSheetViewController()
nextVC.cardDataModel = card.card
self.hideBottomSheetAndPresent(nextBottomSheet: nextVC, title: card.card.name, height: 574)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ extension SelectGroupBottomSheetViewController {
case .success:
NotificationCenter.default.post(name: Notification.Name.passDataToGroup, object: self.selectedGroupIndex, userInfo: nil)
NotificationCenter.default.post(name: Notification.Name.passDataToDetail, object: self.selectedGroup, userInfo: nil)
self.hideBottomSheetAndGoBack()
self.makeOKAlert(title: "", message: "그룹이 변경되었습니다.") { _ in
self.hideBottomSheetAndGoBack()
}
case .requestErr(let message):
print("changeGroupWithAPI - requestErr: \(message)")
case .pathErr:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class CardDetailViewController: UIViewController {
@IBOutlet weak var optionButton: UIButton!
@IBOutlet weak var cardView: UIView!
@IBOutlet weak var backButton: UIButton!
@IBOutlet weak var idStackView: UIStackView!
@IBOutlet weak var idLabel: UILabel!

public var cardDataModel: Card?
Expand Down Expand Up @@ -111,6 +112,7 @@ extension CardDetailViewController {
case .detail:
return
}
idStackView.isHidden = true
idLabel.text = cardDataModel?.cardID
}
private func setMenu() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ extension GroupViewController: UICollectionViewDelegateFlowLayout {
}
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat {
switch collectionView {
case groupCollectionView:
return 5
case cardsCollectionView:
return collectionView.frame.size.width * 15/327
default:
Expand Down

0 comments on commit 517e390

Please sign in to comment.