GithubHelp home page GithubHelp logo

bemanalogclock's People

Contributors

5teev avatar boris-em avatar joeljfischer avatar kierajmumick avatar mattti avatar werediver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bemanalogclock's Issues

Border Color and Graduation Color do not update

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?

Issue with delegate and Graduation Methods....

Hello,
Thanks for your lovely Tools.
Very nice indeed!
I have two problems.....

  1. I can not connect delegate in IB and if I try to use "self.myclock.delegate = self;" my app crashes in runtime during viewdidload....why? How to connect delegate?
    Of course if I DO NOTHING about connecting or using Delegate the app runs perfect without problem.
  2. Most serious problem is that about Graduation. All methods do not be called at all !!!!
    When I use "self.myClock.enableGraduations = YES" nothing is been called and NO Customization of the graduations can be performed!!!!
    Please if you can respond to my questions...

Thank you very much again

George Gerardis

Second Hand lags when scrolling

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.

Swift version?

Hi,
this project was so great!

let me know if you have a swift version of this.

Thanks.

enabledShadows does not work

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

`

Hours

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

The hands don't change size according to auto layout constraints like the clock itself does

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):

simulator screen shot 28 oct 2016 8 00 13 am

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?

showing 24h time

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?

The sample project looks weird...

I ran the sample project on iOS 10.3, iPhone SE simulator, Xcode 8.3.2 and it looks like this:

simulator screen shot 2017 07 19 8 12 19

I don't think the clock is supposed to be oval shaped. The black bars at the bottom and top are not supposed to be there, right?

tvOS support

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.

hour hand x-offset (off center) in some conditions

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:
img_0480
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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.