enricoza / seekpreview Goto Github PK
View Code? Open in Web Editor NEWAttach a SeekPreview to a seekBar to show small preview images of the seek action.
License: MIT License
Attach a SeekPreview to a seekBar to show small preview images of the seek action.
License: MIT License
All public methods need to be documented.
I would like to have some configuration that can be passed in the init about the UI of the Preview.
Something like:
It could be useful if we could a way to use this class from storyboard too, and maybe configure those same property via storyboard too (see IBInspectable).
At the moment the Animation is just an UIView.animate block used within the SeekPreview class itself.
We could have an Animator protocol injected in the class to which we can delegate the show/hide method implementations.
API could be something like:
func showPreview(_ preview: UIView, completion: (Bool) -> ())
func hidePreview(_ preview: UIView, completion: (Bool) -> ())
The preview would be already with the correct frame in this case.
Or maybe it needs to be a little more complicated (Let's think of, for example, the fact that the preview needs to be hidden at the start, when the view is created)
Maybe we can add an animated
parameter that we can pass as false at the start.
We can also think to provide some default animators like:
Of course we need to be careful for the constraints and at the end of the animation we have to enforce the view position.
Maybe this can't be entirely customizable from the outside.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.