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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ Pods/
# Add this line if you want to avoid checking in source code from Carthage dependencies.
Carthage/Checkouts
Carthage/Build

# Swift Package Manager
#
.build/
.swiftpm/
Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright (c) 2015年 keygx. All rights reserved.
//

import UIKit

struct Background {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright (c) 2015年 keygx. All rights reserved.
//

import UIKit

public protocol StyleProperty {
// Progress Size
var progressSize: CGFloat { get set }
Expand Down
24 changes: 24 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// swift-tools-version:5.1

import PackageDescription

let package = Package(
name: "GradientCircularProgress",
platforms: [
.iOS(.v8)
],
products: [
.library(
name: "GradientCircularProgress",
targets: ["GradientCircularProgress"]
)
],
targets: [
.target(
name: "GradientCircularProgress",
path: "source",
exclude: ["GradientCircularProgress.h"]
)
],
swiftLanguageVersions: [.v5]
)
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ github "keygx/GradientCircularProgress"
pod 'GradientCircularProgress', :git => 'https://github.com/keygx/GradientCircularProgress'
```

### Swift Package Manager

In Xcode, select `File > Swift Packages > Add Package Dependency...` and enter the repository URL:

```
https://github.com/keygx/GradientCircularProgress.git
```

Or add it as a dependency in your `Package.swift`:

```swift
dependencies: [
.package(url: "https://github.com/keygx/GradientCircularProgress.git", from: "3.14.0")
]
```

### Swift versions support

- Swift 5.1, tag "swift5.1"
Expand Down
1 change: 1 addition & 0 deletions source/Progress/Elements/Background.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright (c) 2015年 keygx. All rights reserved.
//

import UIKit

struct Background {

Expand Down
2 changes: 2 additions & 0 deletions source/Progress/Property.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright (c) 2015年 keygx. All rights reserved.
//

import UIKit

public protocol StyleProperty {
// Progress Size
var progressSize: CGFloat { get set }
Expand Down