Skip to content

Commit

Permalink
Update minimum iOS version
Browse files Browse the repository at this point in the history
Bring the `Install` section to higher level.
  • Loading branch information
maziyarpanahi authored May 13, 2019
1 parent dacc4cf commit e709f23
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,28 @@ UILabel drop-in replacement supporting Hashtags (#), Mentions (@), URLs (http://

![](ActiveLabelDemo/demo.gif)


## Install (iOS 10+)

### Carthage

Add the following to your `Cartfile` and follow [these instructions](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application)

```
github "optonaut/ActiveLabel.swift"
```

### CocoaPods

CocoaPods 0.36 adds supports for Swift and embedded frameworks. To integrate ActiveLabel into your project add the following to your `Podfile`:

```ruby
platform :ios, '10.0'
use_frameworks!

pod 'ActiveLabel'
```

## Usage

```swift
Expand Down Expand Up @@ -136,27 +158,6 @@ label.filterHashtag { hashtag in validHashtags.contains(hashtag) }
label.filterMention { mention in validMentions.contains(mention) }
```

## Install (iOS 8+)

### Carthage

Add the following to your `Cartfile` and follow [these instructions](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application)

```
github "optonaut/ActiveLabel.swift"
```

### CocoaPods

CocoaPods 0.36 adds supports for Swift and embedded frameworks. To integrate ActiveLabel into your project add the following to your `Podfile`:

```ruby
platform :ios, '10.0'
use_frameworks!

pod 'ActiveLabel'
```

## Alternatives

Before writing `ActiveLabel` we've tried a lot of the following alternatives but weren't quite satisfied with the quality level or ease of usage, so we decided to contribute our own solution.
Expand Down

0 comments on commit e709f23

Please sign in to comment.