Skip to content

Commit

Permalink
[Fix] 다이어리 작성 시 화면 dismiss 수정 #116
Browse files Browse the repository at this point in the history
+ 스크롤 바 위치 수정
  • Loading branch information
chasomin committed Feb 12, 2023
1 parent 3697f0d commit c21f1b3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ struct DiaryAddView: View {
}
addViewAddButton
}
.padding(.horizontal, UIScreen.screenWidth*0.03)
}
}
.padding(.horizontal, UIScreen.screenWidth*0.03)
.navigationTitle(Text("캠핑 일기 쓰기"))
.onTapGesture {
dismissKeyboard()
submit()
}
.disableAutocorrection(true) //자동 수정 비활성화
.textInputAutocapitalization(.never) //첫 글자 대문자 비활성화
Expand Down Expand Up @@ -313,6 +313,7 @@ private extension DiaryAddView {
Spacer()
Button {
diaryStore.createDiaryCombine(diary: Diary(id: UUID().uuidString, uid: Auth.auth().currentUser?.uid ?? "", diaryUserNickName: userNickName ?? "닉네임", diaryTitle: diaryTitle, diaryAddress: locationInfo, diaryContent: diaryContent, diaryImageNames: [], diaryImageURLs: [], diaryCreatedDate: Timestamp(), diaryVisitedDate: selectedDate, diaryLike: [], diaryIsPrivate: diaryIsPrivate), images: diaryImages)
dismiss()
} label: {
Text(diaryTitle.isEmpty || diaryContent.isEmpty ? "내용을 작성해주세요" : "일기 쓰기")
.frame(width: UIScreen.screenWidth * 0.9, height: UIScreen.screenHeight * 0.07) // 이거 밖에 있으면 글씨 부분만 버튼 적용됨
Expand Down

0 comments on commit c21f1b3

Please sign in to comment.