Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 10 11:18
    steve111MV opened #107
  • Oct 22 06:49
    AshaPatel011 opened #106
  • Oct 06 15:55
    r3econ commented #92
  • Sep 02 12:36
    vijay12345678910 opened #105
  • Aug 10 17:51
    Beech316 commented #87
  • Jul 02 10:58
    sereivoanyong synchronize #89
  • Jul 02 09:01
    sereivoanyong synchronize #89
  • Jul 02 08:49
    sereivoanyong synchronize #89
  • Jul 02 07:42
    sereivoanyong synchronize #89
  • Jul 02 07:18
    sereivoanyong synchronize #89
  • Jul 02 07:15
    sereivoanyong synchronize #89
  • Jul 02 07:04
    sereivoanyong synchronize #89
  • Jul 01 09:12
    sereivoanyong synchronize #89
  • Jul 01 09:05
    sereivoanyong synchronize #89
  • Jul 01 06:59
    sereivoanyong synchronize #89
  • Jun 29 03:05
    saqibalizameen commented #81
  • Jun 03 10:40
    chitrakush edited #104
  • Jun 03 10:36
    chitrakush opened #104
  • Jun 03 10:17
    chitrakush commented #87
  • May 26 12:41
    MohgaNabil synchronize #53
WorldDownTown
@WorldDownTown
Hello, give me some questions if you don't understand about RangeSeekSlider.
nitrag
@nitrag
@WorldDownTown howdy
image.png
Labels are being cutoff
Makes no sense because: let labelFrame: CGRect = CGRect(x: 0.0, y: 0.0, width: 75.0, height: 14.0)
I added:
@IBInspectable open var minFont: CGFloat = 12 {
        didSet {
            minLabel.fontSize = minFont
        }
    }
    @IBInspectable open var maxFont: CGFloat = 12 {
        didSet {
            maxLabel.fontSize = maxFont
        }
    }
nitrag
@nitrag
great framework btw
iseeya-app
@iseeya-app
How can I access to currently selected higher and lower values on the slider ?
WorldDownTown
@WorldDownTown
@nitrag Sorry for replying so late. RangeSeekSlider has properties which is similar to minFont. In this case, use minLabelFont and maxLabelFont. But you must set values to this properties in not Interface Builder but code , unfortunately it can't be used @IBDesignable for UIFont.
WorldDownTown
@WorldDownTown
@iseeya-app Hi, thank you for the message. You can access to currently selected values with selectedMInValue and selectedMaxValue.
@IBOutlet private weak var rangeSlider: RangeSeekSlider!

...

rangeSlider.selectedMinValue  // currently selected minimum value
rangeSlider.selectedMaxValue // currently selected maximum value
Dhibin Dinesh
@dhibindinesh
How to RangeSeekSlider inside dynamic prototype tableview cell ?
WorldDownTown
@WorldDownTown
Does it work when you addSubview RangeSeekSlider to the contentView of UITableViewCell?
Fahim Parkar
@fparkar
Hello there,
I would like to format the slider text (minimum label & maximum label) that are there on the left & right side. Let me explain scenario.
I am making flight app where I am using this slider
I have filter where I need to select the duration
I have duration as 245 to 510 means 4 hrs 5 min to 8 hr 30 min. What I want to do is show 4 hrs 5 min instead of 245. Any idea how this customization can be done?
I can handle the logic, however I am unable to find a place where I can set text. I have a function ready which will convert integer (245) to string (4 hrs 5 min).
Fahim Parkar
@fparkar
Between, I like your slider.
Fahim Parkar
@fparkar
I found a solution. Below is what I did

Thank you.

I found a solution.

I set tag as 99 for the hour slider and update below in updateLabelValues.

    if let replacedString = delegate?.rangeSeekSlider(self, stringForMinValue: selectedMinValue) {
        minLabel.string = replacedString
    } else {
        if (self.tag==99) {
            minLabel.string = "\(GlobalFunctions.minutesToHoursMinutes(minutes: Int(selectedMinValue)).hours)\("hourShort".localized()) \(GlobalFunctions.minutesToHoursMinutes(minutes: Int(selectedMinValue)).leftMinutes)\("minutesShort".localized())"
        } else {
            minLabel.string = numberFormatter.string(from: selectedMinValue as NSNumber)
        }
    }

    if let replacedString = delegate?.rangeSeekSlider(self, stringForMaxValue: selectedMaxValue) {
        maxLabel.string = replacedString
    } else {
        if (self.tag==99) {
            maxLabel.string = "\(GlobalFunctions.minutesToHoursMinutes(minutes: Int(selectedMaxValue)).hours)\("hourShort".localized()) \(GlobalFunctions.minutesToHoursMinutes(minutes: Int(selectedMaxValue)).leftMinutes)\("minutesShort".localized())"
        } else {
            maxLabel.string = numberFormatter.string(from: selectedMaxValue as NSNumber)
        }
    }
Karl
@KarlChow92
Hello, I would like to ask a question. Does the slider support tapping on line to adjust the max/min Value? That would be great! Thanks.
Instead of really dragging.
Marcos Lacerda
@marcoslacerda

Hello,
Your library it's amazing, but i have a question:

How to reset slider to initial values?
So, i change slider values and add a button named "Reset Default Value". I try set selectedMinValue and selectedMaxValue to my default values, but this not working.

Do you help me?

Thanks a lot

Fahim Parkar
@fparkar
    priceRangeSlider.selectedMinValue = 1
    priceRangeSlider.selectedMaxValue = 100
    priceRangeSlider.setNeedsLayout()
setNeedsLayout() is the important
@marcoslacerda : Please take a look for resetting option.
Marcos Lacerda
@marcoslacerda
@fparkar thank you so much Really i forgot to setNeedsLayout. Work beautiful
Tommy Nordli
@tommynordli
Anyone experiences issues with XIB preview in Swift 4? I’m just getting an error:
file:///Users/tommy/Git/spis/raclette-app/raclette-app/Shared/TableViewCells/PriceRangeCell/PriceRangeTableViewCell.xib: error: IB Designables: Failed to render and update auto layout status for PriceRangeTableViewCell (KGk-i7-Jjw): dlopen(RangeSeekSlider.framework, 1): no suitable image found.  Did find:
    RangeSeekSlider.framework: required code signature missing for 'RangeSeekSlider.framework’
Jim Kaspro
@JimKaspro_twitter

Anyone experiences issues with XIB preview in Swift 4? I’m just getting an error:

file:///Users/tommy/Git/spis/raclette-app/raclette-app/Shared/TableViewCells/PriceRangeCell/PriceRangeTableViewCell.xib: error: IB Designables: Failed to render and update auto layout status for PriceRangeTableViewCell (KGk-i7-Jjw): dlopen(RangeSeekSlider.framework, 1): no suitable image found.  Did find:
    RangeSeekSlider.framework: required code signature missing for 'RangeSeekSlider.framework’

@tommynordli Yes i am getting the same error @WorldDownTown Please fix this at earliest.

FilippoDev
@FilippoDev
Hi to everybody
I changed the library so that in case of min value and max value and select min value and select max value are different maintain the color selected
if you allow me for a pull request I can push my changes
Виталий
@Vetas-R_gitlab
Hi all, this slider is perfect, but I can't understand how can I change min/max labels position from bottom to top?

Elisha Terada
@elishaterada
@Vetas-R_gitlab I have the same issue. The position of value only goes to the top if you set labelsFixed = true but what I want is the dynamic numbers to also be on top so users can see the numbers changing above their finger tip.
Rinat Enikeev
@rinat-enikeev
Hi. Any ETA for Swift Package Manager support?
Rinat Enikeev
@rinat-enikeev
Rinat Enikeev
@rinat-enikeev
image.png
Rian Erlangga Saputra
@rerlanggas
Hi, is this library supported line separator? so if I set max value 100 and step 10, the slider will be showing 10 line separator
Stewart Thompson
@Stewman9000
How do you use this with SwiftUI? The instructions make it easy to implement with a regular storyboard, but when I try to integrate it in my SwiftUI build it just never works. (I'm also newer to Swift so I don't understand deeper things yet)