-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,24 @@ | |
|
||
## Installation | ||
|
||
### 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 Slider as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift` or the Package list in Xcode. | ||
|
||
```swift | ||
dependencies: [ | ||
.package(url: "https://github.com/Ramiz69/Slider.git", .upToNextMajor(from: "0.0.9")) | ||
] | ||
``` | ||
|
||
Normally you'll want to depend on the `Slider` target: | ||
|
||
```swift | ||
.product(name: "Slider", package: "Slider") | ||
``` | ||
|
||
### CocoaPods | ||
|
||
[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Slider into your Xcode project using CocoaPods, specify it in your `Podfile`: | ||
|
@@ -37,11 +55,6 @@ copy `Slider.swift` to your project | |
- init Slider with frame | ||
- add a view to your superview | ||
|
||
#### storyboard | ||
- add a view to your superview | ||
- in the "Identity Inspector" in xCode, change the class to "Slider" | ||
- add constraint for the placement of the slider | ||
|
||
## Author | ||
|
||
ramiz69, [email protected] | ||
|