Skip to content

Commit

Permalink
[Feat] #183 - 랜덤버튼 클릭시 레이아웃 이슈 수정
Browse files Browse the repository at this point in the history
[Feat] #183 - 랜덤버튼 클릭시 레이아웃 이슈 수정
  • Loading branch information
zzongha authored Jan 13, 2023
2 parents 1f043d9 + 9ca8109 commit 299c59e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 299c59e

Please sign in to comment.