Skip to content

Commit dde841e

Browse files
committed
Updated installation section of the documentation
1 parent e862885 commit dde841e

File tree

1 file changed

+14
-37
lines changed

1 file changed

+14
-37
lines changed

README.md

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ You can also use `+` operator to add a style to a plain or attributed string:
178178
let attStr = "Hello" + ("\(username)" + big)
179179
```
180180

181-
Finally you can concatente strings usint function builders:
181+
Finally you can concatente strings using function builders:
182182

183183
```swift
184184
let bold = Style { ... }
@@ -705,8 +705,7 @@ The following properties are available:
705705

706706
## Requirements
707707

708-
SwiftRichString is compatible with Swift 5.1+ on:
709-
708+
* Swift 5.1+
710709
* iOS 8.0+
711710
* macOS 10.10+
712711
* watchOS 2.0+
@@ -716,51 +715,29 @@ SwiftRichString is compatible with Swift 5.1+ on:
716715

717716
## Installation
718717

719-
<a name="cocoapods" />
720-
721-
### Install via CocoaPods
722-
723-
[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like SwiftRichString in your projects. You can install it with the following command:
724-
725-
```bash
726-
$ sudo gem install cocoapods
727-
```
728-
729-
> CocoaPods 1.8+ is required to build SwiftRichString.
718+
### CocoaPods
730719

731-
#### Install via Podfile
732-
733-
To integrate SwiftRichString into your Xcode project using CocoaPods, specify it in your `Podfile`:
720+
[CocoaPods](https://cocoapods.org/) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Alamofire into your Xcode project using CocoaPods, specify it in your Podfile:
734721

735722
```ruby
736-
source 'https://github.com/CocoaPods/Specs.git'
737-
platform :ios, '8.0'
738-
739-
target 'TargetName' do
740-
use_frameworks!
741723
pod 'SwiftRichString'
742-
end
743724
```
744725

745-
Then, run the following command:
726+
### Swift Package Manager
746727

747-
```bash
748-
$ pod install
749-
```
750-
751-
<a name="carthage" />
752-
753-
### Carthage
728+
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. It is in early development, but Alamofire does support its use on supported platforms.
754729

755-
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
730+
Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the dependencies value of your Package.swift.
756731

757-
You can install Carthage with [Homebrew](http://brew.sh/) using the following command:
758-
759-
```bash
760-
$ brew update
761-
$ brew install carthage
732+
```swift
733+
dependencies: [
734+
.package(url: "https://github.com/malcommac/SwiftRichString.git", from: "3.5.0")
735+
]
762736
```
763737

738+
### Carthage
739+
740+
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
764741
To integrate SwiftRichString into your Xcode project using Carthage, specify it in your `Cartfile`:
765742

766743
```ogdl

0 commit comments

Comments
 (0)