Skip to content

Commit

Permalink
[#454] 번역 복사 버튼 디자인 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
minjung0067 committed Jan 30, 2025
1 parent fb41566 commit a6cf3d8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ struct TranslateView: View {
}
HStack(alignment: .center){
Spacer()
Text("번역 결과가 클립보드에 저장되었습니다")
Text("번역 내용이 복사되었어요")
.padding(.horizontal, 8)
.font(.system(size: 12, weight: .light))
.reazyFont(.body2)
.foregroundColor(.gray600)
.opacity(isCopySuccess ? 1 : 0)
.animation(.easeInOut(duration: 0.1), value: isCopySuccess)
Expand Down Expand Up @@ -159,8 +159,8 @@ struct TranslateView: View {
func copyToClipboard(){
pasteboard.string = self.targetText
isCopySuccess = true
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
withAnimation(.easeOut(duration: 1.0)) {
DispatchQueue.main.asyncAfter(deadline: .now() + 1.3) {
withAnimation(.easeOut(duration: 1.3)) {
isCopySuccess = false
}
}
Expand Down

0 comments on commit a6cf3d8

Please sign in to comment.