LMGaugeViewSwift icon indicating copy to clipboard operation
LMGaugeViewSwift copied to clipboard

Unable to compile run example

Open appsird opened this issue 5 years ago • 2 comments

This has a great appearance.

I downloaded, then did a 'pod update' in the example directory. It stated it was going to compile for iOS 8 as default. I switched to iOS 12.2, then compiled. when running I receive errors. It crashes on line 30 if ViewController.

What releases is this designed for. There also appears to be an issues with how you compute the screen size, which makes it appear it will not work universal or with constraints in landscape.

Please let me know what release and device this is designed to run.

appsird avatar Jun 05 '19 14:06 appsird

I was able to successfully download, compile for iOS 12.2, and run using the example. Though, when turning the phone landscape, the gauge draws as per below. I remove the gauge aspect constraint, and used fixed height width, though received an ellipse gauge. Do you have suggestions on how to provide:

  • landscape support
  • allow aspect fit or fixed width/height for above

IMG_0534

IMG_0536

appsird avatar Jun 05 '19 16:06 appsird

disregard. I believe I have a solution. I reduced the overall size of the gauge to 200x200, then change the valueFont size in ViewController to 40*ratio per below

gaugeView.valueFont = UIFont(name: GaugeView.defaultFontName, size: CGFloat(40 * ratio))!

This provides below landscape view:

IMG_0537

appsird avatar Jun 05 '19 16:06 appsird