Latest | 0.0.2 |
---|---|
Homepage | https://github.com/panpengfei21/Indicator |
License | MIT |
Platforms | ios 9.0, requires ARC |
Frameworks | UIKit |
Authors |
效果
怎么用
let v = PPFIndicator(itemWidth: 100, height: 30)
v.setBackgroundColor(UIColor.red)
v.setFrontgroundColor(UIColor.blue)
v.frame.origin = CGPoint(x: 10, y: 100)
v.setUI(texts: ["AAAA","BBBB","cc"])
v.setLabel(fonts: [UIFont.systemFont(ofSize: 16),UIFont.systemFont(ofSize: 12),UIFont.systemFont(ofSize: 20)])
v.setBackgroundLabel(colors: [UIColor(red: 1, green: 0, blue: 0, alpha: 1),UIColor(red: 0, green: 1, blue: 0, alpha: 1),UIColor(red: 0, green: 0, blue: 1, alpha: 1)])
v.setFrontgroundLabel(uniqueColor: UIColor.white)
v.setFrontgroundColor(UIColor.purple)
v.setCornerRadius(15)
view.addSubview(v)
Latest podspec
{ "name": "TestIndicator", "version": "0.0.2", "summary": "u6307u793au5668!!", "homepage": "https://github.com/panpengfei21/Indicator", "license": { "type": "MIT", "file": "LICENSE.txt" }, "authors": { "Simple": "[email protected]" }, "platforms": { "ios": "9.0" }, "source": { "git": "https://github.com/panpengfei21/Indicator.git", "tag": "0.0.2" }, "source_files": "TestIndicator/**/*.swift", "frameworks": "UIKit", "requires_arc": true, "swift_versions": "5.0", "swift_version": "5.0" }
Tue, 04 Jun 2019 10:07:07 +0000