boris-em / bemanalogclock Goto Github PK
View Code? Open in Web Editor NEWiOS library to create elegant, interactive clocks.
License: MIT License
iOS library to create elegant, interactive clocks.
License: MIT License
I have a theme based app and am trying to use BEMAnalogClock in it. The clock should switch between a dark colour scheme(Border colour and Graduation colour should be white) and light colour scheme (Border colour and Graduation colour should be black) essentially when I call update method.
However, I am only able to update the colours of second, minute and hour hands. Turns out that the colours for border and graduation colours are updated only during the -drawRect method. Anyway we could update the border and graduation colour after the clock has been initialised?
When user come back , the clock is not real time ,because the timer dos not run when screen is dark.
Hello,
Thanks for your lovely Tools.
Very nice indeed!
I have two problems.....
Thank you very much again
George Gerardis
Instead of going over the center, is there an option to simply cut at the center?
Thanks for the great control!
I've embedded your clock as the header view of a tableview, and when I scroll the tableview, the clock stops updating, and the second hand goes out of synch with the current time.
Hi,
this project was so great!
let me know if you have a swift version of this.
Thanks.
Hi, I set enableShadow= true but the shadows not show! ( I have imported BEMAnalogClock in my swiftProject (swift 2.2) ). What is the problem?
`var instanceClock = BEMAnalogClockView(frame:CGRectMake(20,40,100,100))
instanceClock.delegate = self;
instanceClock.setTimeViaTouch = false;
instanceClock.currentTime = true;
instanceClock.enableShadows = true
instanceClock.realTime = true;
instanceClock.faceBackgroundAlpha = 0.0
instanceClock.borderAlpha = 0.0
instanceClock.enableGraduations = false
instanceClock.enableDigit = true;
instanceClock.digitColor = UIColor.blackColor()
instanceClock.hourHandWidth = 1.5
instanceClock.hourHandLength = 15
instanceClock.minuteHandLength = 30
instanceClock.minuteHandWidth = 1.5
instanceClock.secondHandAlpha = 0
instanceClock.minuteHandOffsideLength = 0;
instanceClock.hourHandOffsideLength = 0;
instanceClock.userInteractionEnabled = false
`
APP background 10 minutes ,and EnterForeground.hand frame is incorrect.
Hello and thanks for this excellent piece of work.
i only have 1 question.
Would it be difficult to show the hours as text next to their respective graduations?
Can it be done without messing up anything else?
thanks
When I put the clock on the storyboard and added some constraints to make the clock fill the screen when the screen is larger, this happens (iPad Pro):
As you can see, the clock itself indeed resized, but the hands stay small. I know this is due to using a constant number as the length of the hands. Are there any workarounds to make the hands resize according to autolayout constraints? Maybe you can make properties like hourHandLengthPercentage
so that people can set the length as a percentage of the radius? So if I set this property to 0.5
then the hour hand's length is half the radius?
Hello again,
how about making the clock able to show the time in the label in 24h format?
i think it would be a nice feature, right?
Hi,
It would be great to have the option of customizing the clock using images just like ClockView!
https://github.com/nacho4d/ClockView/
Hi, I see there's a PR for tvOS support. I'd very much like to see that integrated for a small project I'm working on.
One problem i encountered is a crooked hour hand every once in a while. I can't reproduce the problem 100% but here is a picture of it in action:
Most likely its just the origin of the hourhand thas flawed. I used the analog clock exactly as in the example app. It occurs more often if the app runs longer and the view in which the clock resides is presented and disappears.
cheers
edit: its not only the hour hand, minute hand also affected in some cases
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.