BelkaLab / GaugeView

A simple Gauge View in Swift
MIT License
54 stars 17 forks source link

refactor: Updated to Swift 3 and Xcode 8 #4

Closed omaralbeik closed 8 years ago

omaralbeik commented 8 years ago

Updated to latest swift 3 and Xcode 8

omaralbeik commented 8 years ago

how about combining the GaugeView.swift and GaugeLayer int one file, so users don't have to copy two files when installing manually?

GnuRant commented 8 years ago

Hey, you should use Cocoapods to install this pod into your project, btw in my opinion the code should be splitted in a logical way in order to improve the code readability and maintainability. Do you suggest a better way to structure the code ?

omaralbeik commented 8 years ago

@GnuRant I totally agree with you! split the file into multiple parts, but since the GaugeLayer is private, I think It's better to add it into GaugeView.swift file and keep it separated from the GaugeView class You can have multiple classes in one .swift file, also extension is a great way to organize code Thank you!

GnuRant commented 8 years ago

@omaralbeik thanks for the suggestions, I reject your pull request because I want to deeply understand if there is a better way to write the component in swift 3. Thanks for the support!