Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
Carthage/
Carthage/
# Created by https://www.toptal.com/developers/gitignore/api/swiftpm
# Edit at https://www.toptal.com/developers/gitignore?templates=swiftpm

### SwiftPM ###
Packages
.build/
xcuserdata
DerivedData/
*.xcodeproj

.DS_Store
# End of https://www.toptal.com/developers/gitignore/api/swiftpm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// swift-tools-version: 5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "TKRadarChart",
platforms: [
.iOS(.v11)
],
products: [
.library(
name: "TKRadarChart",
targets: ["TKRadarChart"]),
],
targets: [
.target(
name: "TKRadarChart"),
]
)
28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@

## Requirements

- iOS 8.0+
- Xcode 9.0
- Swift 4.0
- iOS 11.0+
- Xcode 12.0
- Swift 5.0

## Installation

#### CocoaPods
You can use [CocoaPods](http://cocoapods.org/) to install `TKRadarChart` by adding it to your `Podfile`:

```ruby
platform :ios, '8.0'
platform :ios, '11.0'
use_frameworks!
pod 'TKRadarChart'
```
Expand All @@ -41,6 +41,17 @@ Create a `Cartfile` that lists the framework and run `carthage update`. Follow t
```ruby
github "tbxark/TKRadarChart"
```

#### Swift Package Manager

The [Swift Package Manager](https://swift.org/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 TKRadarChart as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift.

```swift
dependencies: [
.package(url: "https://github.com/pabloruan0710/TKRadarChart", .upToNextMajor(from: "1.4.3"))
]
```
#### Manually
1. Download and drop ```TKRadarChart.swift``` in your project.
2. Congratulations!
Expand All @@ -51,9 +62,9 @@ github "tbxark/TKRadarChart"

|Base|Description|Demo|
|---|---|---|
|Step|Background polygon laps(min 1)|![image](DemoImage/origin.png) ![image](DemoImage/step.png)|
|Row|Number of edges of polygon (min 3)|![image](DemoImage/origin.png) ![image](DemoImage/row.png)|
|Section|At the same time show the number of data|![image](DemoImage/origin.png) ![image](DemoImage/section.png)|
|Step|Background polygon laps(min 1)|![image](Sources/DemoImage/origin.png) ![image](Sources/DemoImage/step.png)|
|Row|Number of edges of polygon (min 3)|![image](Sources/DemoImage/origin.png) ![image](Sources/DemoImage/row.png)|
|Section|At the same time show the number of data|![image](Sources/DemoImage/origin.png) ![image](Sources/DemoImage/section.png)|

### TKRadarChartConfig

Expand Down Expand Up @@ -103,6 +114,9 @@ protocol TKRadarChartDelegate: class {


## Release History
* 1.4.4
Upgrade to swift 5.0
Support SPM

* 1.4.3
Upgrade to swift 4.2
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.3.1</string>
<string>1.4.4</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ import UIKit
typealias NSAttributedStringKey = NSAttributedString.Key
#endif



/// You can set data chart by `TKRadarChartDataSource`
public protocol TKRadarChartDataSource: class {
public protocol TKRadarChartDataSource: AnyObject {
func numberOfStepForRadarChart(_ radarChart: TKRadarChart) -> Int
func numberOfRowForRadarChart(_ radarChart: TKRadarChart) -> Int
func numberOfSectionForRadarChart(_ radarChart: TKRadarChart) -> Int
Expand All @@ -25,7 +23,7 @@ public protocol TKRadarChartDataSource: class {
}

/// You can custom chart by `TKRadarChartDelegate`
public protocol TKRadarChartDelegate: class {
public protocol TKRadarChartDelegate: AnyObject {

func colorOfLineForRadarChart(_ radarChart: TKRadarChart) -> UIColor
func colorOfFillStepForRadarChart(_ radarChart: TKRadarChart, step: Int) -> UIColor
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions TKRadarChart.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = "TKRadarChart"
s.version = "1.4.3"
s.version = "1.4.4"
s.summary = "TKRadarChart is a customizable radar chart "
s.license = { :type => 'MIT License', :file => 'LICENSE' }
s.homepage = "https://github.com/TBXark/TKRadarChart"
s.author = { "TBXark" => "https://github.com/TBXark" }
s.platform = :ios, "8.0"
s.platform = :ios, "11.0"
s.source = { :git => "https://github.com/TBXark/TKRadarChart.git", :tag => s.version }
s.source_files = "TKRadarChart/TKRadarChart.swift"
s.source_files = "Sources/TKRadarChart/TKRadarChart.swift"
s.requires_arc = true
end
Loading