Skip to content

Commit

Permalink
chore: 캘린더 및 검색 Optional Value 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chayoosang committed Mar 30, 2023
1 parent 6fd6e49 commit c418d0b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions KeKi/Scenes/Calendar/DayAddViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ class DayAddViewController: UIViewController {

@objc func addDay() {
if dayType != .numDay {
if date > Date() {
if date! > Date() {
showAlert(title: "날짜 오류", message: "미래 날짜가 아닌 과거 날짜를 선택해주세요")
return
}
}else {
if date < Date() {
if date! < Date() {
showAlert(title: "날짜 오류", message: "과거 날짜가 아닌 미래 날짜를 선택해주세요")
return
}
Expand All @@ -211,7 +211,7 @@ class DayAddViewController: UIViewController {
}
}

if hashTags.count() == 0 {
if hashTags.count == 0 {
showAlert(title: "태그 오류", message: "태그는 1개 이상 선택해주세요.")
return
}
Expand Down
4 changes: 2 additions & 2 deletions KeKi/Scenes/Search/SearchViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,13 @@ extension SearchViewController: UICollectionViewDelegate, UICollectionViewDataSo
let storyboard = UIStoryboard.init(name: "Feed", bundle: nil)
guard let feedViewController = storyboard.instantiateViewController(withIdentifier: "FeedViewController") as? FeedViewController else { return }
feedViewController.postIdx = recentCakeList[indexPath.row].postIdx
feedViewController.navigationController.navigationBar.isHidden = false
feedViewController.navigationController?.navigationBar.isHidden = false
self.navigationController?.pushViewController(feedViewController, animated: true)
}else {
let storyboard = UIStoryboard.init(name: "Feed", bundle: nil)
guard let feedViewController = storyboard.instantiateViewController(withIdentifier: "FeedViewController") as? FeedViewController else { return }
feedViewController.postIdx = searchResultList[indexPath.row].postIdx
feedViewController.navigationController.navigationBar.isHidden = false
feedViewController.navigationController?.navigationBar.isHidden = false
self.navigationController?.pushViewController(feedViewController, animated: true)
}
}
Expand Down
4 changes: 2 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PODS:
- GTMSessionFetcher/Core (1.7.2)
- IQKeyboardManagerSwift (6.5.11)
- JGProgressHUD (2.2)
- naveridlogin-sdk-ios (4.1.5)
- naveridlogin-sdk-ios (4.1.6)

DEPENDENCIES:
- GoogleSignIn (~> 5.0)
Expand All @@ -40,7 +40,7 @@ SPEC CHECKSUMS:
GTMSessionFetcher: 5595ec75acf5be50814f81e9189490412bad82ba
IQKeyboardManagerSwift: c7955c0bdbf7b2eb29bb7daaa44e3d90f55a9a85
JGProgressHUD: d83d7a981b85d11205e19ff8ad5bb9c40571c847
naveridlogin-sdk-ios: 4351fe7162cd6b8b6dbb37bd7cc205304fa1d889
naveridlogin-sdk-ios: cdd34e3585a3d5aaf37c1d84c1f41faba4a25d1a

PODFILE CHECKSUM: 9c54f882dc5ba1f159bbd41025044f1fc34fe4c0

Expand Down

0 comments on commit c418d0b

Please sign in to comment.