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

Unable to compile run example #1

Open
appsird opened this issue Jun 5, 2019 · 2 comments
Open

Unable to compile run example #1

appsird opened this issue Jun 5, 2019 · 2 comments

Comments

@appsird
Copy link

appsird commented Jun 5, 2019

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
Copy link
Author

appsird commented Jun 5, 2019

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
Copy link
Author

appsird commented Jun 5, 2019

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

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

1 participant