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