All Projects → pisces → OrangeLabel

pisces / OrangeLabel

Licence: MIT license
OrangeLabel is extensions of UILabel linkable, available line background and placeholder text

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to OrangeLabel

Socially
Socially is a textView which is able to create separate clickable views according to your requirements.
Stars: ✭ 28 (+47.37%)
Mutual labels:  hashtag, mention
textmatcher
A simple text watcher that matches specific targets like mention or hashtag in a string by defining rules
Stars: ✭ 67 (+252.63%)
Mutual labels:  hashtag, mention
STTextView
📝 STTextView is a light-weight library that adds a placeholder to the UITextView.
Stars: ✭ 36 (+89.47%)
Mutual labels:  carthage, placeholder-text
Mentions
An easy way to add mentions and hashtags
Stars: ✭ 24 (+26.32%)
Mutual labels:  hashtag, mention
iOSProjects
It's project that contains different applications developed with Swift 5.7 👨‍💻👩🏼‍💻🧑🏿‍💻
Stars: ✭ 122 (+542.11%)
Mutual labels:  carthage
react-native-element-textinput
A react-native TextInput, TagsInput and AutoComplete component easy to customize for both iOS and Android.
Stars: ✭ 28 (+47.37%)
Mutual labels:  hashtag
Brutegram
Instagram multi-bruteforce Platfrom
Stars: ✭ 183 (+863.16%)
Mutual labels:  hashtag
actions-mention-to-slack
Github Action for convert Github mention to Slack mention.
Stars: ✭ 52 (+173.68%)
Mutual labels:  mention
mention-hashtag
Extract mentions (@mention) or hashtags (#hashtag) from any text
Stars: ✭ 16 (-15.79%)
Mutual labels:  hashtag
instagram-hashtag-scraper
NodeJS application for scraping recent top posts from Instagram by hashtag without API access.
Stars: ✭ 17 (-10.53%)
Mutual labels:  hashtag
wink-sentiment
Accurate and fast sentiment scoring of phrases with #hashtags, emoticons :) & emojis 🎉
Stars: ✭ 51 (+168.42%)
Mutual labels:  hashtag
hashtag.io
Hashtag.io is a PHP based social networking website, which supports exclusive multimedia content, sharing and private or group messaging service.
Stars: ✭ 64 (+236.84%)
Mutual labels:  hashtag
BuckoNetworking
iOS Protocol-Oriented Networking in Swift
Stars: ✭ 18 (-5.26%)
Mutual labels:  carthage
Go-Flashcards
Go Flashcards for iOS and WatchOS - Official repository
Stars: ✭ 60 (+215.79%)
Mutual labels:  carthage
Twitter-bot
Twitter bot which waits for #hashTag and sends weather update of city via tweets
Stars: ✭ 20 (+5.26%)
Mutual labels:  hashtag
ASToast
A Swift extension for using Android style Toast notifications.
Stars: ✭ 34 (+78.95%)
Mutual labels:  carthage
Validated
A rule-based validation framework
Stars: ✭ 31 (+63.16%)
Mutual labels:  carthage
instastory.js
This is a jQuery plugin to make it easy to get a feed from instagram. No need of access tokens and other stuff, Only thing needed is jQuery.
Stars: ✭ 36 (+89.47%)
Mutual labels:  hashtag
atinternet-apple-sdk
AT Internet mobile analytics solution for Apple devices
Stars: ✭ 25 (+31.58%)
Mutual labels:  carthage
DragDropUI
A set of iOS UI components which have drag & drop capability.
Stars: ✭ 30 (+57.89%)
Mutual labels:  carthage

OrangeLabel

Swift CI Status Version License Platform Carthage Compatible

  • OrangeLabel is extensions of UILabel linkable, available line background and placeholder text

Features

  • Link for mention, hashtag, url and custom
  • Placeholder text and color
  • Line background

Import

import OrangeLabel

Example

let numbers = UILabelLinkType.custom(pattern: "[0-9]+")
let label = OrangeLabel()
label.adjustsFontSizeToFitWidth = true
label.enabledLinkTypes = [.mention, .hashtag, .url, numbers]
label.isUserInteractionEnabled = true
label.font = UIFont(name: "AvenirNext-Bold", size: 60)
label.minimumScaleFactor = 0.2
label.lineBackgroundColor = .black
label.lineBackgroundInset = UIEdgeInsets(top: -5, left: 5, bottom: -5, right: 5)
label.numberOfLines = 0
label.text = "@steve Your selfie overed 1000 views @steve Your selfie overed 1000 views @steve Your selfie overed 1000 views @steve #hahaha http://retrica.co Your selfie overed 1000 views @steve Your selfie overed 1000 views @steve Your selfie overed 1000 views www.retrica.co @steve Your selfie overed 1000 views @steve Your selfie overed 1000 views @steve #hahaha Your selfie overed 1000 views @steve Your selfie overed 1000 views"
label.textAlignment = .center
label.textColor = .white

label.setHighlightedLinkColor(UIColor.white.withAlphaComponent(0.5), type: .mention)
    .setHighlightedLinkColor(UIColor.white.withAlphaComponent(0.5), type: .hashtag)
    .setHighlightedLinkColor(UIColor.white.withAlphaComponent(0.5), type: .url)
    .setHighlightedLinkColor(UIColor.white.withAlphaComponent(0.5), type: numbers)
    .setAttributes([NSUnderlineStyleAttributeName: NSUnderlineStyle.styleSingle.rawValue,
                    NSForegroundColorAttributeName: UIColor(red: 1, green: 185/255, blue: 0, alpha: 1)], type: .mention)
    .setAttributes([NSForegroundColorAttributeName: UIColor(red: 225/255, green: 66/255, blue: 16/255, alpha: 1)], type: .hashtag)
    .setAttributes([NSForegroundColorAttributeName: UIColor(red: 0, green: 204/255, blue: 238/255, alpha: 1)], type: .url)
    .setAttributes([NSForegroundColorAttributeName: UIColor(red: 1, green: 85/255, blue: 0, alpha: 1)], type: numbers)

label.linkTapped { (link) in
    print(link)
}

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.1.0+ is required to build OrangeLabel 0.1.0+.

To integrate OrangeLabel into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target '<Your Target Name>' do
    pod 'OrangeLabel', '~> 0.2.0'
end

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Alamofire into your Xcode project using Carthage, specify it in your Cartfile:

github "pisces/OrangeLabel" ~> 0.2.0

Run carthage update to build the framework and drag the built OrangeLabel.framework into your Xcode project.

Requirements

iOS Deployment Target 9.0 higher

Author

Steve Kim, [email protected]

License

OrangeLabel is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].