From 88599e60883ffdb8a3acfa8477a23a346a38467b Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Fri, 17 Jan 2025 14:32:45 +0100 Subject: [PATCH] Use proper cancel button as discussed (#2450) --- deltachat-ios/Chat/AppPickerViewController.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deltachat-ios/Chat/AppPickerViewController.swift b/deltachat-ios/Chat/AppPickerViewController.swift index 1e15f971e..a321093e1 100644 --- a/deltachat-ios/Chat/AppPickerViewController.swift +++ b/deltachat-ios/Chat/AppPickerViewController.swift @@ -6,8 +6,6 @@ protocol AppPickerViewControllerDelegate: AnyObject { } class AppPickerViewController: UIViewController { - // Web view - // Context weak var delegate: AppPickerViewControllerDelegate? let webView: WKWebView var defaultCloseButton: UIBarButtonItem? @@ -29,7 +27,7 @@ class AppPickerViewController: UIViewController { view.addSubview(downloadingView) view.backgroundColor = .systemBackground setupConstraints() - let closeButton = UIBarButtonItem(image: UIImage(systemName: "xmark"), style: .plain, target: self, action: #selector(AppPickerViewController.close(_:))) + let closeButton = UIBarButtonItem(barButtonSystemItem: UIBarButtonItem.SystemItem.cancel, target: self, action: #selector(AppPickerViewController.close(_:))) title = String.localized("webxdc_apps") navigationItem.leftBarButtonItem = closeButton