Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Runnect-iOS/Runnect-iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@
CODE_SIGN_ENTITLEMENTS = "Runnect-iOS/Runnect-iOSDebug.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.0.7;
CURRENT_PROJECT_VERSION = 1.0.8;
DEVELOPMENT_TEAM = 8Q4H7X3Q58;
GENERATE_INFOPLIST_FILE = NO;
INFOPLIST_FILE = "Runnect-iOS/Info.plist";
Expand Down Expand Up @@ -1751,7 +1751,7 @@
CODE_SIGN_ENTITLEMENTS = "Runnect-iOS/Runnect-iOS.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.0.7;
CURRENT_PROJECT_VERSION = 1.0.8;
DEVELOPMENT_TEAM = 8Q4H7X3Q58;
GENERATE_INFOPLIST_FILE = NO;
INFOPLIST_FILE = "Runnect-iOS/Info.plist";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"images" : [
{
"filename" : "ios 1.png",
"filename" : "ios 앱 배너-1.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ios 앱 배너@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ios 앱 배너@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "ios 2.png",
"filename" : "ios 1.png",
"idiom" : "universal",
"scale" : "1x"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "ios 앱 배너.png",
"filename" : "ios 2.png",
"idiom" : "universal",
"scale" : "1x"
},
Expand Down
2 changes: 1 addition & 1 deletion Runnect-iOS/Runnect-iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0.7</string>
<string>1.0.8</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ import Foundation

struct CourseDetailScrapCountDto: Codable {
let scrapCount: Int

let publicCourse: Int?
let scarpTF: Bool?
Comment on lines +14 to +15
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

옵셔널 값 줘서 dto 또 안만든 명진 칭찬해 ..

/*
코스 아이디와, 스크랩 TF는 사용 안함, 필요시 사용
*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import Foundation
// MARK: - PickedMapListResponseDto

struct PickedMapListResponseDto: Codable {
let totalPageSize: Int
let isEnd: Bool
let totalPageSize: Int?
let isEnd: Bool?
let publicCourses: [PublicCourse]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class AdImageCollectionViewCell: UICollectionViewCell, UIScrollViewDelegat
final let collectionViewInset = UIEdgeInsets(top: 28, left: 16, bottom: 28, right: 16)

// MARK: - UI Components
var imgBanners: [UIImage] = [ImageLiterals.imgBanner3, ImageLiterals.imgBanner1, ImageLiterals.imgBanner2]
var imgBanners: [UIImage] = [ImageLiterals.imgBanner1, ImageLiterals.imgBanner2, ImageLiterals.imgBanner3]
var currentPage: Int = 0
private var timer: Timer?

Expand Down Expand Up @@ -128,19 +128,20 @@ extension AdImageCollectionViewCell: UICollectionViewDelegate, UICollectionViewD
imageView.isUserInteractionEnabled = true
cell.contentView.addSubviews(imageView)

if indexPath.item == 0 {
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(firstCellTapped(_:)))
imageView.addGestureRecognizer(tapGesture)
}
// 터치 이벤트 임시 제거
// if indexPath.item == 0 {
// let tapGesture = UITapGestureRecognizer(target: self, action: #selector(firstCellTapped(_:)))
// imageView.addGestureRecognizer(tapGesture)
// }
return cell
}
// 첫 번째 셀 클릭 이벤트 핸들러
@objc func firstCellTapped(_ gesture: UITapGestureRecognizer) {
// Safari 링크로 연결
if let url = URL(string: "https://docs.google.com/forms/d/1cpgZHNNi1kIvi2ZCwCIcMJcI1PkHBz9a5vWJb7FfIbg/edit") {
UIApplication.shared.open(url)
}
}
// @objc func firstCellTapped(_ gesture: UITapGestureRecognizer) {
// // Safari 링크로 연결
// if let url = URL(string: "https://docs.google.com/forms/d/1cpgZHNNi1kIvi2ZCwCIcMJcI1PkHBz9a5vWJb7FfIbg/edit") {
// UIApplication.shared.open(url)
// }
// }
Comment on lines +131 to +144
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

배너 터치 이벤트 뺀거 확인했습니다 ~

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인 감사합니다 ~


}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ extension CourseDiscoveryVC {
}

uploadButton.snp.makeConstraints { make in
make.trailing.equalTo(self.view.safeAreaLayoutGuide).inset(22)
make.trailing.equalTo(self.view.safeAreaLayoutGuide).inset(21)
make.bottom.equalTo(self.view.safeAreaLayoutGuide).inset(20)
make.height.equalTo(40)
make.width.equalTo(92)
Expand All @@ -216,7 +216,6 @@ extension CourseDiscoveryVC {
miniUploadButton.snp.makeConstraints { make in
make.trailing.equalTo(self.view.safeAreaLayoutGuide).inset(22)
make.bottom.equalTo(self.view.safeAreaLayoutGuide).inset(20)
make.width.height.equalTo(41)
}

emptyView.snp.makeConstraints { make in
Expand Down Expand Up @@ -490,8 +489,11 @@ extension CourseDiscoveryVC {
do {
let responseDto = try result.map(BaseResponse<PickedMapListResponseDto>.self)
guard let data = responseDto.data else { return }
self.totalPageNum = data.totalPageSize
self.isEnd = data.isEnd

guard let totalPageNum = data.totalPageSize, let isEnd = data.isEnd else { return }
self.totalPageNum = totalPageNum
self.isEnd = isEnd

self.courseList.append(contentsOf: data.publicCourses)
self.mapCollectionView.reloadData()
print("pageNo= \(pageNo), isEnd= \(self.isEnd), totalPageNum= \(self.totalPageNum)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ extension CourseListCVC {
extension CourseListCVC {
private func setUI() {
self.contentView.backgroundColor = .w1
self.courseImageView.layer.borderColor = UIColor(hex: "EAEAEA").cgColor /// 모든 코스 테두리 1px 요구사항
self.courseImageView.layer.borderWidth = 1.0
}

private func setLayout() {
Expand Down