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 = [] }