diff --git a/Gallery/PostDetailViewController.swift b/Gallery/PostDetailViewController.swift index 2f8c8b7..4893ef2 100644 --- a/Gallery/PostDetailViewController.swift +++ b/Gallery/PostDetailViewController.swift @@ -55,10 +55,15 @@ class PostDetailViewController: UIViewController, UIPopoverPresentationControlle imageView?.image = self.image if(isPopup) { + #if targetEnvironment(macCatalyst) + navigationItem.leftBarButtonItem = UIBarButtonItem(title: nil, style: .done, target: nil, action: nil) + #else navigationItem.leftBarButtonItem = UIBarButtonItem(title: "Done", style: .plain, target: self, action: #selector(closePopup)) + + #endif } } - + #if !targetEnvironment(macCatalyst) updateWindowTitle() #endif