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

Interface Builder Designable #38

Merged
merged 11 commits into from
Aug 7, 2016
Merged

Interface Builder Designable #38

merged 11 commits into from
Aug 7, 2016

Conversation

andris-zalitis
Copy link

I have added the necessary changes so that we could fine-tune looks of ScrollableGraphView right from Interface Builder as requested here: #8

Making it IB compatible mainly meant disabling animations (displayLink) while in IB and making sure the height is big enough so that we don't hit assert (layer.zeroYPosition > 0).

Andris added 11 commits August 3, 2016 23:12
…ange.

Updated code related to activePointsInterval that did otherwise.
This was mainly to fix startAnimations which were iterating from
startIndex to endIndex and thus iterating once even on empty range 0..<0.

Also, since activePointsInterval.endIndex can’t be bigger than 
data.count we can simplify some checks.
For enums additional Int properties were created to allow setting
them in IB.
Now all of the public properties are available except for
fonts and closures.
Effectively the fix was just disabling rightToLeft while in IB because
it seems that IB does not really work well with nonzero UIScrollView
content offsets.
@philackm
Copy link
Owner

philackm commented Aug 7, 2016

This is great! I really appreciate the help. I will test the changes and then merge it in for everyone to use today.

@andris-zalitis
Copy link
Author

You may want to pay a closer attention to the first commit since changes there impact also the behaviour when running on real target (i.e. not only TARGET_INTERFACE_BUILDER).

@philackm philackm merged commit 61f358d into philackm:master Aug 7, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants