Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramiz69 authored Mar 14, 2024
1 parent df2d131 commit 3626ded
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand All @@ -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]
Expand Down

0 comments on commit 3626ded

Please sign in to comment.