Coder Social home page Coder Social logo

napyslider's People

Contributors

alecgorge avatar farktronix avatar seeppp avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

napyslider's Issues

Swift integration

I can not set properties programmatically, and I am getting the error
'max' is inaccessible due to 'internal' protection level

Please change the ACL to public

P.S.

I used cocoapods

Current Position Handle label position

As far as I can see the numerical label shown when the handle moves up and down is always on the right. This would work better if the position was selectable (say left, middle or right).
Easy enough to code round but best if it's implemented in the class.

Value Changed Action

Since NapySlider is subclass of UIControl, can you please implement valueChanged action?

Problems with rotation, light to dark mode and vary with traits

I found that I could not vary with traits in IB to adjust the size of the slider for different devices and orientations. The slider seems to lose something and internally gets a NaN.
Similarly when changing light to dark and dark to light modes the slider loses the place.
In both cases the volumes went to the middle of the range and resetting the slider caused a crash.

So there is something happening which can easily be seen just by changing dark mode to light.

Setting default value ?

Hello,

How can I set a default value for NapySlider ?

What I tried to do is

func setSliderPointsToZero() {
    let allSliders = [myNapySlider1, myNapySlider2,]
    
    for slider in allSliders {
        getLabelsInView(view: slider!).first?.text = "0"
    }
    
}

func getLabelsInView(view: UIView) -> [UILabel] {
    var results = [UILabel]()
    for subview in view.subviews as [UIView] {
        if let labelView = subview as? UILabel {
            results += [labelView]
        } else {
            results += getLabelsInView(view: subview)
        }
    }
    return results
}

but it doesn't work :(

Thank you for your work
Regards

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.