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

How could I crop an image of ImageRow #78

Open
student-101 opened this issue Jan 4, 2020 · 4 comments
Open

How could I crop an image of ImageRow #78

student-101 opened this issue Jan 4, 2020 · 4 comments

Comments

@student-101
Copy link

How could I crop an image when user selects an image at ImageRow?

@hakan-niflioglu
Copy link

You can crop an image adding accessoryView like below.

        <<< ImageRow() {
        }.cellUpdate({ (cell, row) in
            cell.accessoryView?.layer.cornerRadius = 15
            cell.accessoryView?.frame.size = CGSize(width: 30, height: 30)
        })

@student-101
Copy link
Author

student-101 commented Jan 4, 2020

Thank you for your reply.
Now, I have another question.
How could I show crop-modal for cropping image when users crop a selected image by himself?
Thank you.

@hakan-niflioglu
Copy link

I'am also new to ImageRow but this may be helpful. #10

@student-101
Copy link
Author

student-101 commented Jan 5, 2020

I can't understand that issue's answer so much.( ; ; )

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

No branches or pull requests

2 participants