Respond to CR.

pull/2/head
Matthew Chen 6 years ago
parent 4fd16a7614
commit 581d0a7bff

@ -207,7 +207,7 @@ public class AttachmentApprovalViewController: UIPageViewController, UIPageViewC
cancelButton.sizeToFit() cancelButton.sizeToFit()
navigationItem.leftBarButtonItem = UIBarButtonItem(customView: cancelButton) navigationItem.leftBarButtonItem = UIBarButtonItem(customView: cancelButton)
} else { } else {
// Mimic a UIBarButtonItem of type .cancel, but with a shadow. // Mimic a conventional back button, but with a shadow.
let isRTL = CurrentAppContext().isRTL let isRTL = CurrentAppContext().isRTL
let imageName = isRTL ? "NavBarBackRTL" : "NavBarBack" let imageName = isRTL ? "NavBarBackRTL" : "NavBarBack"
let backButton = OWSButton(imageName: imageName, tintColor: .white) { [weak self] in let backButton = OWSButton(imageName: imageName, tintColor: .white) { [weak self] in

Loading…
Cancel
Save