From 281285bf14d4a6adda8c8ac51a6bd57c1257855d Mon Sep 17 00:00:00 2001 From: iceHood Date: Tue, 10 Dec 2024 16:35:22 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=ED=95=84=EC=9A=94=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EC=BD=94=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MHPresentation/Source/EditBook/View/EditPageCell.swift | 3 --- .../Source/EditBook/ViewModel/EditPageViewModel.swift | 1 - 2 files changed, 4 deletions(-) diff --git a/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/View/EditPageCell.swift b/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/View/EditPageCell.swift index f049208..3e6e1ec 100644 --- a/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/View/EditPageCell.swift +++ b/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/View/EditPageCell.swift @@ -52,7 +52,6 @@ final class EditPageCell: UITableViewCell { super.prepareForReuse() input.send(.pageWillDisappear) - cancellables.forEach { $0.cancel() } cancellables = [] viewModel = nil textView.text = "" @@ -266,9 +265,7 @@ final class EditPageCell: UITableViewCell { replacementText: text ) else { return } attachment.dataSource = self - textStorage.beginEditing() textStorage.append(text) - textStorage.endEditing() } } diff --git a/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/ViewModel/EditPageViewModel.swift b/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/ViewModel/EditPageViewModel.swift index 056e3ff..9e0bbf4 100644 --- a/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/ViewModel/EditPageViewModel.swift +++ b/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/ViewModel/EditPageViewModel.swift @@ -79,7 +79,6 @@ final class EditPageViewModel: ViewModelType { } private func pageWillDisappear() { - cancellables.forEach { $0.cancel() } cancellables = [] }