Skip to content

Commit 9d3a764

Browse files
committed
[Fix] #259 - isMyCourse() 가 바인딩이 안되는 이슈 해결
1 parent c86e7fa commit 9d3a764

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

Runnect-iOS/Runnect-iOS.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@
17031703
CODE_SIGN_IDENTITY = "Apple Development";
17041704
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
17051705
CODE_SIGN_STYLE = Manual;
1706-
CURRENT_PROJECT_VERSION = 2024.0311.1813;
1706+
CURRENT_PROJECT_VERSION = 2024.0312.0041;
17071707
DEVELOPMENT_TEAM = "";
17081708
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8Q4H7X3Q58;
17091709
GENERATE_INFOPLIST_FILE = NO;
@@ -1747,7 +1747,7 @@
17471747
CODE_SIGN_IDENTITY = "Apple Development";
17481748
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
17491749
CODE_SIGN_STYLE = Manual;
1750-
CURRENT_PROJECT_VERSION = 2024.0311.1813;
1750+
CURRENT_PROJECT_VERSION = 2024.0312.0041;
17511751
DEVELOPMENT_TEAM = "";
17521752
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8Q4H7X3Q58;
17531753
GENERATE_INFOPLIST_FILE = NO;

Runnect-iOS/Runnect-iOS/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</dict>
4747
</array>
4848
<key>CFBundleVersion</key>
49-
<string>2024.0311.1813</string>
49+
<string>2024.0312.0041</string>
5050
<key>LSApplicationQueriesSchemes</key>
5151
<array>
5252
<string>kakaokompassauth</string>

Runnect-iOS/Runnect-iOS/Presentation/Running/VC/RunningWaitingVC.swift

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,17 @@ extension RunningWaitingVC {
9292
self.courseId = courseId
9393
self.publicCourseId = publicCourseId
9494

95-
self.isMyCourse()
9695
getCourseDetail(courseId: courseId)
9796
}
9897

9998
private func setCourseData(courseModel: Course) {
10099
self.courseModel = courseModel
101100

102-
// 코스 모델에서 타이틀을 가져와 UI에 설정합니다.
101+
guard let isMyCourse = courseModel.isNowUser else { return }
102+
self.isMyCourse(courseOwner: isMyCourse)
103+
103104
self.courseTitle = courseModel.title
104-
self.naviBar.setTitle(self.courseTitle ?? "Test Code")
105+
self.naviBar.setTitle(self.courseTitle ?? "타이틀 없음")
105106

106107
guard let path = courseModel.path, let distance = courseModel.distance else { return }
107108
let locations = path.map { NMGLatLng(lat: $0[0], lng: $0[1]) }
@@ -119,14 +120,10 @@ extension RunningWaitingVC {
119120
self.shareButton.addTarget(self, action: #selector(shareButtonDidTap), for: .touchUpInside)
120121
}
121122

122-
private func isMyCourse() {
123-
guard let isMyCourse = courseModel?.isNowUser else { return }
124-
125-
// 자기 코스가 아니라면 <공유, 더보기 버튼> 히든 처리
126-
if !isMyCourse {
127-
self.shareButton.isHidden = true
128-
self.moreButton.isHidden = true
129-
}
123+
private func isMyCourse(courseOwner: Bool) {
124+
print("💪💪💪💪💪💪💪💪💪💪💪💪💪💪💪💪💪💪")
125+
self.shareButton.isHidden = !courseOwner
126+
self.moreButton.isHidden = !courseOwner
130127
}
131128
}
132129

0 commit comments

Comments
 (0)