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 showAttachedCropToolbar option to CropToolbarConfig #177

Merged
merged 3 commits into from
Jul 12, 2022

Conversation

guoyingtao
Copy link
Owner

@guoyingtao guoyingtao commented Jul 10, 2022

This PR solves #173

@vanniktech
I added showBottomCropToolbar option to CropToolbarConfig, you can check the example Hide Rotation Dial

image
image

@guoyingtao guoyingtao changed the title feat: add showNativeCropToolbar option to CropToolbarConfig feat: add showBottomCropToolbar option to CropToolbarConfig Jul 10, 2022
@YingtaoGuo YingtaoGuo removed their request for review July 10, 2022 21:17
Mantis.podspec Outdated
@@ -21,7 +21,7 @@ Pod::Spec.new do |s|
s.social_media_url = "http://twitter.com/guoyingtao"
s.platform = :ios
s.swift_version = "5.0"
s.ios.deployment_target = "11.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this change really necessary? I still have deployment_target = "12.0" for my app

Copy link
Owner Author

Choose a reason for hiding this comment

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

It is because of my previous PR #169
I added a CropToolbarIconProvider also I decided to use SF Symbol for CropToolbar icons instead of drawing them by myself, which needs iOS 13.
With apple's iOS 16 coming soon, I think it might be a good timing to move to iOS 13 because it also supports Combine, SwiftUI etc.

@guoyingtao
Copy link
Owner Author

@vanniktech
I decided to just support iOS 11.0+ again and use if #available when using SF symbols for now

change CocoaPods deployment target 13.0
update an example to show showNativeCropToolbar's support
remove some unnecessary self
rename showBottomCropToolbar to showAttachedCropToolbar
add getCancelIcon and getCropIcon to CropToolbarIconProvider protocol
@guoyingtao guoyingtao changed the title feat: add showBottomCropToolbar option to CropToolbarConfig feat: add showAttachedCropToolbar option to CropToolbarConfig Jul 12, 2022
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.

Lovely, thanks!

@guoyingtao guoyingtao merged commit 417f607 into master Jul 12, 2022
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