Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NMRangeSlider with Swift #58

Open
rawanOmari opened this issue Jul 2, 2015 · 10 comments
Open

NMRangeSlider with Swift #58

rawanOmari opened this issue Jul 2, 2015 · 10 comments

Comments

@rawanOmari
Copy link

hi :)
i'm trying to use NMRangeSlider with my projject written in Swift.
i faced a problem: the slider doesn't appear at all!
when i entered the Debug View Hierarchy and see if it's on canvas, the slider was there !!!
screen shot 2015-07-02 at 12 48 32 pm
but all its component are white, so it seemed that the slider doesn't take the default values.
So my question is :
How to deal with NMRangeSlider with swift ?
why this problem happened?

@bre7
Copy link

bre7 commented Sep 8, 2015

Set this commit in your Podfile:

pod 'NMRangeSlider',                :git => 'https://github.com/chanil1218/NMRangeSlider.git', :commit => 'c89890c'

@dnsmob
Copy link

dnsmob commented Sep 10, 2015

humm.. tried that, doesnt seem to work. more ideas?

@bre7
Copy link

bre7 commented Sep 10, 2015

The slider or the knobs aren't visible ?

@dnsmob
Copy link

dnsmob commented Sep 10, 2015

exactly. debugging the view i can see the object is there, but seems to be transparent or something.. i added images into the xcassets, project.. but nothing seems to make a difference. i added logs all over the place and all methods seem to be called all the way to the addSubview. so no ideas what's going on -- it works fine on a pure objc proj though.

@bre7
Copy link

bre7 commented Sep 10, 2015

I have it working on a Swift project using that commit that fixes the bundle bug.

@dnsmob
Copy link

dnsmob commented Sep 10, 2015

maybe i'm doing something wrong then.. would you share a working empty project please?

@bre7
Copy link

bre7 commented Sep 10, 2015

@hrodriguezfigueroa
Copy link

@bre7 That works :) thanks

@bre7
Copy link

bre7 commented Dec 30, 2015

You just have to use a specific commit in your Podfile (until #54 is merged):

pod 'NMRangeSlider',                :git => 'https://github.com/chanil1218/NMRangeSlider.git', :commit => 'c89890c'

@xsahoo
Copy link

xsahoo commented Dec 30, 2015

@bre7 That did the trick, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants