فهرست منبع

fix swipe to reply icon visibility issue on iOS 11 and 12

cyberta 4 سال پیش
والد
کامیت
f067e89a87
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      deltachat-ios/Chat/ChatViewController.swift

+ 3 - 2
deltachat-ios/Chat/ChatViewController.swift

@@ -493,14 +493,15 @@ class ChatViewController: UITableViewController {
                                             self?.replyToMessage(at: indexPath)
                                             completionHandler(true)
                                         })
-        if #available(iOS 12.0, *) {
+        if #available(iOS 13.0, *) {
             action.image = UIImage(named: traitCollection.userInterfaceStyle == .light ? "ic_reply_black" : "ic_reply")
+            action.backgroundColor = DcColors.chatBackgroundColor
         } else {
             action.image = UIImage(named: "ic_reply_black")
+            action.backgroundColor = .systemBlue
         }
         action.image?.accessibilityTraits = .button
         action.image?.accessibilityLabel = String.localized("menu_reply")
-        action.backgroundColor = DcColors.chatBackgroundColor
         let configuration = UISwipeActionsConfiguration(actions: [action])
 
         return configuration