-
Notifications
You must be signed in to change notification settings - Fork 77
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
enhancement - expose primitive values/variables or document methods to allow hooking into variables changing #2
Comments
(it maybe a case of simply documenting this functional as I dive deeper into classes looking for how to.) perhaps I could extend from interpolation.swift |
perhaps looking at this library sample code - what's not clear to me is hooking into anything but the cgrect.. I want to interpolate a cgsize or variable.
|
this function - actually looks perfect / would be nice to expose more documentation in readme as per PRTween.
|
Hey @johndpope You can use that exact same code, but supply CGFloats or CGSize instead of CGRects if you like, as those classes take generic arguments. Here is an example from a project that I'm working on:
Any type that conforms to the Does that help? |
thanks Steve. |
still think it would go a long way to have this in readme |
Glad you got it working! I'll put it on my todo list to make the readme a bit clearer. I'll take a look at PRTween too, to see how that project is documented |
this is working mint.
|
I used to use this library in objective-c days
https://github.com/danielebogo/PRTween
Perhaps you could cherry pick helpful stuff.
I want to hook into a value that gets updated.
I want to have a ticker style uilabel that rotates when the length is too long.
I'm using snapkit through out project / thus far code looks like this (not full functional)
I want my label's left offset to change over a duration. eg.
https://gist.github.com/johndpope/5eef5fab18ad20b467b8da81032fa83f
The text was updated successfully, but these errors were encountered: