StatsView
A simple stats view to build up a simple dashboard in app. A StatsView makes implementation of statistics UI easy.
Requirements
- Swift 4.0 or higher
v1.0.0
- Swift 4
v1.1.0
- Swift 4.2
v1.2.0
- Swift 5
Installation
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'
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")
]
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
Demo
StatsViewDemo is a simple demo app using StatsView.
Author
Zheng-Xiang Ke, [email protected]
License
StatsView is available under the MIT license. See the LICENSE file for more info.