From a43648db55edc4668f1148a49d027d9e7bc3ecd5 Mon Sep 17 00:00:00 2001 From: heejoo Date: Fri, 19 Jan 2024 01:13:01 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20#110=20-=20WriteViewController=20UI=20?= =?UTF-8?q?=EB=94=94=ED=85=8C=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Write/ViewControllers/WriteViewController.swift | 2 -- .../DontBe-iOS/Presentation/Write/Views/WriteTextView.swift | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/DontBe-iOS/DontBe-iOS/Presentation/Write/ViewControllers/WriteViewController.swift b/DontBe-iOS/DontBe-iOS/Presentation/Write/ViewControllers/WriteViewController.swift index 147ea1dd..ccf8b301 100644 --- a/DontBe-iOS/DontBe-iOS/Presentation/Write/ViewControllers/WriteViewController.swift +++ b/DontBe-iOS/DontBe-iOS/Presentation/Write/ViewControllers/WriteViewController.swift @@ -152,8 +152,6 @@ extension WriteViewController { extension WriteViewController { private func getAPI() { if UserDefaults.standard.integer(forKey: "memberGhost") <= -85 { - self.view.addSubviews(banView) - self.banView.snp.makeConstraints { $0.edges.equalToSuperview() } diff --git a/DontBe-iOS/DontBe-iOS/Presentation/Write/Views/WriteTextView.swift b/DontBe-iOS/DontBe-iOS/Presentation/Write/Views/WriteTextView.swift index caffe7ab..dab8c239 100644 --- a/DontBe-iOS/DontBe-iOS/Presentation/Write/Views/WriteTextView.swift +++ b/DontBe-iOS/DontBe-iOS/Presentation/Write/Views/WriteTextView.swift @@ -106,12 +106,10 @@ extension WriteTextView { } func setUI() { - contentTextView.becomeFirstResponder() limitedCircleProgressBar.alpha = 0 - if UserDefaults.standard.integer(forKey: "memberGhost") <= -85 { - // 키보드 내림 - } else { + if UserDefaults.standard.integer(forKey: "memberGhost") > -85 { + contentTextView.becomeFirstResponder() NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow(_:)), name: UIResponder.keyboardWillShowNotification, object: nil) } // 햅틱 피드백 생성