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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Xcode
#
build/
.build/
.swiftpm/
*.pbxuser
!default.pbxuser
*.mode1v3
Expand Down
2 changes: 1 addition & 1 deletion MBCircularProgressBar.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ a circular animatable & Interface Builder highly customizable progress bar
s.platform = :ios, '8.0'
s.requires_arc = true

s.source_files = 'Pod/Classes/**/*'
s.source_files = 'Sources/**/*'
s.resource_bundles = {
'MBCircularProgressBar' => ['Pod/Assets/*.png']
}
Expand Down
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.3
import PackageDescription

let package = Package(
name: "MBCircularProgressBar",
platforms: [
.iOS(.v9)
],
products: [
.library(name: "MBCircularProgressBar", targets: ["MBCircularProgressBar"])
],
targets: [
.target(
name: "MBCircularProgressBar",
path: "Sources",
exclude: ["Example"],
publicHeadersPath: "."
),
]
)
Empty file removed Pod/Classes/.gitkeep
Empty file.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ To run the example project, clone the repo, and run `pod update` from the Exampl

## Installation

### Swift Package Manager

1. Add the following to your `Package.swift`:
```swift
.package(url: "https://github.com/MatiBot/MBCircularProgressBar.git", .upToNextMajor(from: "0.3.4")),
```
2. Next, add `MBCircularProgressBar` to your App targets dependencies like so:
```swift
.target(name: "App", dependencies: ["CircularProgressBar"]),
```

### Cocoapods

MBCircularProgressBar is available through [CocoaPods](http://cocoapods.org).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

@import QuartzCore;
@import UIKit;

typedef NS_ENUM(NSInteger, MBCircularProgressBarAppearanceType) {
MBCircularProgressBarAppearanceTypeOverlaysEmptyLine = 0,
Expand Down