-
Notifications
You must be signed in to change notification settings - Fork 74
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
Add image size property to action items #203
Comments
Hey, currently you can set If I remember correctly the image sizes are determined by its original size. If this doesn't work, something is wrong. Could you post the image you are using, the size of the action button and the value of |
@jjochen My code is
My image is the pdf vector, it's small by default, but I though it could scale up? |
Yes, that's it. I think the intrinsic content size of the image view is used which uses the original size of the image. On the other hand it's probably a good idea to be able to fix the image size somehow independent of the actual image size. |
For now you could use something like this:
The multiplier can't be greater than that because the constraints have to work with the existing ones here. Otherwise you would have to remove the existing constraints first. |
@jjochen Thanks for you help. But how can I remove the existing constraints? The constraints code is in the library.
And the action items are disappeared cause it conflicts with the existing ones as you said |
Btw, I remove the whitespace around the actual icon, then scale up image and it works. Hope you can add a feature to resize later. Thanks |
@ductranit That's good to hear! I think that's actually the best way to go. I might add an image size property once I have a bit more time at hand. |
Hi, I wonder whether it can have a way to resize the menu icon in the button items? My action button & action items are quite large (130x130), but the icon size can't be changed although I use the large image. The icons look very small in the ipad.
Is there any way to do increaze their size by code? Some like:
The text was updated successfully, but these errors were encountered: