diff --git a/Sources/Mantis/CropViewController/CropToolbar.swift b/Sources/Mantis/CropViewController/CropToolbar.swift index eee06ce3..f51274ae 100644 --- a/Sources/Mantis/CropViewController/CropToolbar.swift +++ b/Sources/Mantis/CropViewController/CropToolbar.swift @@ -131,6 +131,12 @@ public class CropToolbar: UIView, CropToolbarProtocol { self.config = config backgroundColor = .black + if #available(macCatalyst 14.0, iOS 14.0, *) { + if UIDevice.current.userInterfaceIdiom == .mac { + backgroundColor = .white + } + } + createButtonContainer() setButtonContainerLayout() diff --git a/Sources/Mantis/CropViewController/RatioPresenter.swift b/Sources/Mantis/CropViewController/RatioPresenter.swift index db9796c0..9354b78e 100644 --- a/Sources/Mantis/CropViewController/RatioPresenter.swift +++ b/Sources/Mantis/CropViewController/RatioPresenter.swift @@ -82,7 +82,7 @@ public extension UIAlertController { popoverPresentationController?.sourceRect = sourceView.bounds } - if #available(macCatalyst 14.0, *) { + if #available(macCatalyst 14.0, iOS 14.0, *) { if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac { handlePopupInBigScreen(sourceView: sourceView, permittedArrowDirections: permittedArrowDirections) }