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

Content Mode doesn't work #218

Closed
cuong1112035 opened this issue Nov 5, 2017 · 6 comments
Closed

Content Mode doesn't work #218

cuong1112035 opened this issue Nov 5, 2017 · 6 comments
Assignees
Milestone

Comments

@cuong1112035
Copy link

Hi, thank for your library.
I created a view with specific frame and setting Scale To Fill for content mode but It doesn't work. Did I miss something?

@ystrot
Copy link
Member

ystrot commented Nov 16, 2017

Could you please attach an SVG that doesn't work for you?

@ystrot ystrot self-assigned this Nov 16, 2017
@cuong1112035
Copy link
Author

@ystrot I got the tiger svg from your git example

@ystrot
Copy link
Member

ystrot commented Nov 24, 2017

I've checked Example project and with Scale To Fill it looks quite fine:
tiger

If it doesn't work for you, could you please provide more details like screen shot, Macaw version, etc? If you can attach your project it will be really helpful.

@cuong1112035
Copy link
Author

hi @ystrot
I attach a demo project here
1 Getting Started.zip

@ystrot ystrot added this to the 0.9.2 milestone Nov 29, 2017
@amarunko
Copy link
Contributor

amarunko commented Nov 29, 2017

Hi, @cuong1112035, MacawView doesn't support contentMode functional, only SVGView class from Macaw library support this UIView functional (I've tried with you project - everything work as expected). We can suggest you to use SVGView if possible, if not, you can just copy&paste SVGView implementation to your code and customise it as you like. Reference to SVGView content mode implementation: https://github.com/exyte/Macaw/blob/master/Source/svg/SVGView.swift#L66-L144

We will add this functional to later releases, thanks.

@ystrot
Copy link
Member

ystrot commented Jun 28, 2018

Both MacawView and SVGView now support content mode, see https://github.com/exyte/Macaw/wiki/Understanding-MacawView-content-layout for details.

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

3 participants