Latest 1.0.1
Homepage https://github.com/ApterKing/AKDashboardView
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit
Authors

类似汽车🚘油量仪表盘

Usage:

  • 通过pod 方式引入

pod 'AKDashboardView'

  • 初始化

    let dashboardView = AKDashboardView(frame: CGRect(x: (UIScreen.main.bounds.size.width - 300) / 2.0, y: 200, width: 300, height: 150))
    dashboardView.gradientColors = [UIColor.green, UIColor.orange, UIColor.red]
    dashboardView.needleColor = UIColor.white
    dashboardView.shortScaleColor = UIColor.white.withAlphaComponent(0.6)
    dashboardView.shortScales = 5
    dashboardView.longScales = 11
    dashboardView.longScaleColor = UIColor.white
    dashboardView.longScaleTexts = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]
    
    dashboardView.scale = 0.6
    self.view.addSubview(dashboardView)

    AKDashboardView

Author

ApterKing, [email protected]

License

AKDashboardView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "AKDashboardView",
    "version": "1.0.1",
    "summary": "DashboardView which likes car's oil dashboard",
    "homepage": "https://github.com/ApterKing/AKDashboardView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ApterKing": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/ApterKing/AKDashboardView.git",
        "tag": "1.0.1"
    },
    "source_files": "Pod/Classes/*.swift",
    "frameworks": "UIKit",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This