Просмотр исходного кода

adapt visibility of some functions

cyberta 4 лет назад
Родитель
Сommit
18e51b4ae2

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

@@ -23,7 +23,7 @@ public class DraftModel {
         self.quoteText = quotedMsg?.text
     }
 
-    func save(context: DcContext) {
+    public func save(context: DcContext) {
         if draftText == nil && quoteMessage == nil {
             context.setDraft(chatId: chatId, message: nil)
             return

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

@@ -42,7 +42,7 @@ public class QuoteView: UIView {
         fatalError("init(coder:) has not been implemented")
     }
 
-    func setupSubviews() {
+    private func setupSubviews() {
         addSubview(citeBar)
         addSubview(senderTitle)
         addSubview(imagePreview)

+ 1 - 1
deltachat-ios/View/QuotePreview.swift

@@ -54,7 +54,7 @@ public class QuotePreview: UIView, InputItem {
         fatalError("init(coder:) has not been implemented")
     }
 
-    func setupSubviews() {
+    private func setupSubviews() {
         addSubview(upperBorder)
         addSubview(quoteView)
         addSubview(cancelButton)