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

miniMarginPxBetweenItems is get only property cannot assign #20

Open
Nidhee opened this issue Mar 7, 2017 · 1 comment
Open

miniMarginPxBetweenItems is get only property cannot assign #20

Nidhee opened this issue Mar 7, 2017 · 1 comment

Comments

@Nidhee
Copy link

Nidhee commented Mar 7, 2017

After I updated the pod to 1.5 and after that i am not able to use two properties miniMarginPxBetweenItems and miniAppearPxOfLastItem. What version I should use, i am currently working on swift 3.0

@terenceLuffy
Copy link
Owner

terenceLuffy commented Mar 7, 2017

Didn't check the title, sorry.

Yes, after v1.4, the two properties are readonly. Instead, you should set miniMarginBetweenItems and miniAppearWidthOfLastItem of structure MarginSettings . Now you can set different margins for different screen width, i.e. iPhone 4s portrait you can set marginSettings_320, so as other screen widths named as "marginSettings_width" pattern. There is also a default margin setting defaultMarginSettings which would be used for if the specific screen setting is not set. Please check the code or my blog for more 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

2 participants