Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add mirror mode support #200

Merged
merged 12 commits into from
Aug 27, 2022
Merged

feat: add mirror mode support #200

merged 12 commits into from
Aug 27, 2022

Conversation

guoyingtao
Copy link
Owner

No description provided.

issues to be solved
UI is broken when rotating device
@guoyingtao guoyingtao marked this pull request as ready for review August 26, 2022 01:56
rename handleRotate to handleDeviceRotated

chore: remove deprecated comment
Copy link
Collaborator

@vanniktech vanniktech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works really well for me! Request changes since I think there's a bug with providing your own icons for the toolbar.

@@ -8,7 +8,7 @@

import UIKit

enum ImageRotationType: CGFloat {
public enum ImageRotationType: CGFloat {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this to be public now?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I forgot deleting some test code. I will remove public

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Sources/Mantis/CropViewController/CropToolbar.swift Outdated Show resolved Hide resolved
Sources/Mantis/CropViewController/CropToolbar.swift Outdated Show resolved Hide resolved
Sources/Mantis/CropViewController/CropToolbar.swift Outdated Show resolved Hide resolved
Sources/Mantis/CropViewController/CropToolbar.swift Outdated Show resolved Hide resolved
Sources/Mantis/CropViewController/CropViewController.swift Outdated Show resolved Hide resolved
Sources/Mantis/CropViewController/CropViewController.swift Outdated Show resolved Hide resolved

static func verticallyFlipImage() -> UIImage? {
if #available(macCatalyst 13.1, iOS 13.0, *) {
guard let horizontallyFippedImage = horizontallyFlipImage(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea that you just take the other icon and rotate / translate it!

guoyingtao and others added 10 commits August 27, 2022 16:08
Co-authored-by: Niklas Baudy <niklas.baudy@vanniktech.de>
Co-authored-by: Niklas Baudy <niklas.baudy@vanniktech.de>
Co-authored-by: Niklas Baudy <niklas.baudy@vanniktech.de>
Co-authored-by: Niklas Baudy <niklas.baudy@vanniktech.de>
Co-authored-by: Niklas Baudy <niklas.baudy@vanniktech.de>
Co-authored-by: Niklas Baudy <niklas.baudy@vanniktech.de>
Co-authored-by: Niklas Baudy <niklas.baudy@vanniktech.de>
Co-authored-by: Niklas Baudy <niklas.baudy@vanniktech.de>
use didSelectHorizontallyFlip and didSelectVerticallyFlip
Copy link
Collaborator

@vanniktech vanniktech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! Thank you for the implementation ❤️

@guoyingtao guoyingtao merged commit ea6b1f1 into master Aug 27, 2022
@guoyingtao guoyingtao deleted the mirror-mode branch January 28, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants