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: support adding border to cropped image #196

Merged
merged 3 commits into from
Aug 6, 2022
Merged

Conversation

guoyingtao
Copy link
Owner

@guoyingtao guoyingtao commented Aug 6, 2022

image

This PR fixes #193

@guoyingtao guoyingtao self-assigned this Aug 6, 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.

Looks good

@@ -578,7 +579,7 @@ extension CropView {
guard let croppedImage = image.crop(by: cropInfo) else {
return (nil, transformation, cropInfo)
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: xcode is screwing with your spaces

There is an option to disable this though: https://stackoverflow.com/questions/1390329/trim-trailing-spaces-in-xcode

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks for the sugggestion!
I will try it.

@guoyingtao guoyingtao merged commit f55ae6e into master Aug 6, 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.

How to set border width and color mask layer?
2 participants