yonat / MultiSlider

UISlider clone with multiple thumbs and values, range highlight, optional snap intervals, optional value labels, either vertical or horizontal.
MIT License
494 stars 113 forks source link

MultiViewSlider not available in SwiftUI View file #75

Closed iamsubingyawali closed 3 years ago

iamsubingyawali commented 3 years ago

Description of the problem: I was trying to implement MultiSlider in SwiftUI, but the MultiValueSlider doesn't seem to be available in SwiftUI View file.

What I did:

I am a very beginner in Swift and SwiftUI, please correct if I am doing anything in the wrong way.

Minimal project that reproduces the problem (so I'll be able to figure out how to fix it): I have nothing much in my project just a view file and I am trying to add MultiSlider in there.

import SwiftUI
import MultiSlider

struct HomeView: View {
    var body: some View{
          VStack(){
                MultiValueSlider(...) // Not available
          }
    }
}
yonat commented 3 years ago

You’ll need to use the swiftui branch:

pod 'MultiSlider', :git => 'https://github.com/yonat/MultiSlider.git', :branch => 'swiftui'

iamsubingyawali commented 3 years ago

Thank you so much!