Skip to content

A simple stats view to build up a simple dashboard in app

License

Notifications You must be signed in to change notification settings

kf99916/StatsView

Repository files navigation

StatsView

A simple stats view to build up a simple dashboard in app. A StatsView makes implementation of statistics UI easy.

CocoaPods GitHub stars GitHub forks CocoaPods Compatible Platform GitHub license

StatsView

Requirements

  • Swift 4.0 or higher

v1.0.0

  • Swift 4

v1.1.0

  • Swift 4.2

v1.2.0

  • Swift 5

Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding StatsView as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/kf99916/StatsView.git")
]

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate StatsView into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'StatsView'

Usage

Import

import StatsView

Integration

StatsView

A veiw to show the statistics

var title: NSAttributedString? the title
var titleDescription: NSAttributedString? the description for the title
var titleDescriptionAlignment: NSTextAlignment configure the alignment of the description label related with the title label (default NSTextAlignment.center)

Apps using StatsView

If you are using StatsView in your app and want to be listed here, simply create a pull request.

I am always curious who is using my projects :)

Hikingbook - by Zheng-Xiang Ke

Hikingbook

Demo

StatsViewDemo is a simple demo app using StatsView.

Author

Zheng-Xiang Ke, kf99916@gmail.com

License

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

About

A simple stats view to build up a simple dashboard in app

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published