From 9ca8109e7e4c7cc964ac69218d756b1c731058c3 Mon Sep 17 00:00:00 2001 From: Jonghwa Won Date: Fri, 13 Jan 2023 23:33:13 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20#183=20-=20=EB=9E=9C=EB=8D=A4=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=ED=81=B4=EB=A6=AD=EC=8B=9C=20=EB=A0=88=EC=9D=B4?= =?UTF-8?q?=EC=95=84=EC=9B=83=20=EC=9D=B4=EC=8A=88=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DiaryKorean/StepOneKoreanDiaryViewController.swift | 5 +++-- .../DiaryKorean/StepTwoKoreanDiaryViewController.swift | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Smeme-iOS/Smeme-iOS/Sources/Screen/DiaryKorean/StepOneKoreanDiaryViewController.swift b/Smeme-iOS/Smeme-iOS/Sources/Screen/DiaryKorean/StepOneKoreanDiaryViewController.swift index 20747dc..6e03694 100644 --- a/Smeme-iOS/Smeme-iOS/Sources/Screen/DiaryKorean/StepOneKoreanDiaryViewController.swift +++ b/Smeme-iOS/Smeme-iOS/Sources/Screen/DiaryKorean/StepOneKoreanDiaryViewController.swift @@ -193,11 +193,12 @@ final class StepOneKoreanDiaryViewController: UIViewController { } languageLabel.snp.makeConstraints { - $0.centerY.leading.equalToSuperview() + $0.centerY.equalToSuperview() + $0.leading.equalTo(cancelButton.snp.trailing).offset(109) } stepLabel.snp.makeConstraints { - $0.centerX.equalToSuperview() + $0.centerX.equalTo(languageLabel) $0.top.equalTo(languageLabel.snp.bottom).offset(2) } diff --git a/Smeme-iOS/Smeme-iOS/Sources/Screen/DiaryKorean/StepTwoKoreanDiaryViewController.swift b/Smeme-iOS/Smeme-iOS/Sources/Screen/DiaryKorean/StepTwoKoreanDiaryViewController.swift index 54aa85b..6acc2fb 100644 --- a/Smeme-iOS/Smeme-iOS/Sources/Screen/DiaryKorean/StepTwoKoreanDiaryViewController.swift +++ b/Smeme-iOS/Smeme-iOS/Sources/Screen/DiaryKorean/StepTwoKoreanDiaryViewController.swift @@ -14,7 +14,7 @@ final class StepTwoKoreanDiaryViewController: UIViewController { // MARK: - Property - var randomTopicCheckBox: Bool? + var randomTopicCheckBox: Bool = false var publicCheckBox: Bool = true var koreanDiaryText: String? var isShowHint: Bool = false @@ -332,7 +332,7 @@ extension StepTwoKoreanDiaryViewController { func postDiaryAPI() { PostDiaryAPI.shared.postDiary(param: PostDiaryRequest(content: diaryTextView.text, targetLang: "en", - topicId: randomTopicId == 0 ? 0 : self.randomTopicId ?? 0, + topicId: randomTopicCheckBox ? self.randomTopicId ?? 0 : 0, isPublic: publicCheckBox)) { response in guard let postDiaryresponse = response?.data?.diaryID else { return } print(postDiaryresponse)