Open jessjpj opened 8 years ago
Looking for same.
@preetam-idyllic @jessjpj
after pod install WMGaugeView go to storyboard add View and set View class to WMGaugeView
connect view to controller
then write below codes in your ViewController :
import WMGaugeView
class GaugeVC: UIViewController {
@IBOutlet weak var myGauge: WMGaugeView! //// Connect View to ViewController
override func viewDidLoad() {
super.viewDidLoad()
myGauge.showRangeLabels = true
myGauge.maxValue = 200
myGauge.rangeValues = [50 , 100 , 200]
myGauge.rangeColors = [UIColor.green, UIColor.yellow , UIColor.red]
myGauge.rangeLabels = ["low", "medium" , "High" ]
myGauge.unitOfMeasurement = "Mile"
myGauge.showUnitOfMeasurement = true
myGauge.rangeLabelsFontColor = UIColor.black
myGauge.setValue( 20 , animated: true, duration: 5) // Use this When you want gauge indicator show value
}
}
Use this When you want gauge indicator show value:
myGauge.setValue( Float(gaugeValue) , animated: true, duration: 5)
Got a solution after 1 year. Thanks anyway.
I follow your above instructions., but when I import "WMGaugeView" getting error "No such module 'WMGaugeView'" in swift4.2 project so how can I resolve this issue?
I follow your above instructions., but when I import "WMGaugeView" getting error "No such module 'WMGaugeView'" in swift4.2 project so how can I resolve this issue?
do you try pod install and open YOUR_PROJECT_NAME.xcworkspace ????
I follow your above instructions., but when I import "WMGaugeView" getting error "No such module 'WMGaugeView'" in swift4.2 project so how can I resolve this issue?
do you try pod install and open YOUR_PROJECT_NAME.xcworkspace ???? yes..I did but getting error
Is there any swift implementation of this project? I couldn't find any.