Kaynağa Gözat

improve method naming

cyberta 4 yıl önce
ebeveyn
işleme
d9a12b8abd

+ 1 - 1
deltachat-ios/Chat/ChatViewController.swift

@@ -392,7 +392,7 @@ class ChatViewController: UITableViewController {
     }
 
     private func configureDraftArea(draft: DraftModel) {
-        draftArea.configureDraftArea(draft: draft)
+        draftArea.configure(draft: draft)
         // setStackViewItems recalculates the proper messageInputBar height
         messageInputBar.setStackViewItems([draftArea], forStack: .top, animated: true)
     }

+ 1 - 1
deltachat-ios/Chat/Views/DraftArea.swift

@@ -65,7 +65,7 @@ public class DraftArea: UIView, InputItem {
         mainContentView.fillSuperview()
     }
 
-    public func configureDraftArea(draft: DraftModel) {
+    public func configure(draft: DraftModel) {
         guard let  chatInputBar = inputBarAccessoryView as? ChatInputBar else {
             safe_fatalError("Expecting inputBarAccessoryView of type ChatInputBar")
             return