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
The image is not centered #246
Comments
@JanGorman please help me to solve this issue. Thank you |
Can you shed some light on how you're using the library, what kind of image is showing, basically anything As you may have seen the library ships with a sample project and when I run that locally it works fine: https://github.com/JanGorman/Agrume/blob/master/Example/Agrume%20Example/SingleImageViewController.swift |
A button is connected to a function that will be called once the button is pressed. The function body contains: @IBAction func openImage(_ sender: Any) {
let argume = Agrume(image: UIImage(named: "my_image")!, background: .blurred(.regular))
agrume.show(from: self)
} The image is shown but it is located on the left, and when i click or drag it, then it will be located correctly on the center. The image is .png image |
Thanks for the additional detail. That looks like it should work. Could you share:
I tried a number of combinations (portrait/landscape/square, iPhone/iPad) and they all worked fine. Could you also try to checkout the Agrume project and add the image to the Example project yourself to see if it behaves the same as it does in your project, only to eliminate that option. Thanks |
I'm running my app on: iPhone 11 pro max simulator on Xcode |
@JanGorman thank you so much |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you. |
I found out the problem The image was not centered when the app language is not English But when the app language is English,the image is perfectly showing Do you have any idea how to fix this issue? |
@JanGorman please check my last comment Thanks |
Thanks @meme17sk – great detective work! I'll take a look with that extra information |
I’m using Agrume to display an image on my swift application.
But the image is not centered. I have to click in order to bring it to the center.
It is located to the left and when I click it goes to the center.
I’m displaying a single image.
Could you please help me?
Thank you
The text was updated successfully, but these errors were encountered: