From e709f23e0a032d572a3f105b538df5fa83768ce9 Mon Sep 17 00:00:00 2001 From: Maziyar Panahi Date: Mon, 13 May 2019 18:14:35 +0200 Subject: [PATCH] Update minimum iOS version Bring the `Install` section to higher level. --- README.md | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index af87765f..56f8c4ab 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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.