notbenoit / ezclockview Goto Github PK
View Code? Open in Web Editor NEWFramework to display and animate a clock
License: MIT License
Framework to display and animate a clock
License: MIT License
I wanted to hide the seconds hand, so I thought I can just set its length to 0, but then it crashed...
I tried to set its thickness to 0 and this time it hid successfully.
I think this is a little counter-intuitive. Can you check the value of the hands' lengths so that if any one is 0, don't draw that hand? Or even better, add properties like isSecondsHandEnabled
so that users can easily disable some hands.
Using Xcode 8.3.2, I added a view to the storyboard and set its class to EZClockView
. I was able to set the @IBInspectable
properties using the property inspector, but I can't see a clock being drawn in the storyboard. When I run the app, the clock isn't visible either. See this commit to reproduce.
Currently, there are no numbers on the clock, only major and minor markings. Do you plan on adding such a feature that adds numbers to the clock?
With Xcode 7.2 :
I'm using the view within Interface Builder, everything works great, as expected,
but I get this message in the debugger console on runtime :
Feb 8 18:04:25 MyProject[46206] <Error>: void CGPathAddLineToPoint(CGMutablePathRef _Nullable, const CGAffineTransform * _Nullable, CGFloat, CGFloat): no current point.
No graphical glitch noticed, it appears just once, when drawing the clock for the first time, other draws are OK.
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.