All Projects → alexandreos → Uilabel Copyable

alexandreos / Uilabel Copyable

Licence: other
A simple category to add copy functionality to UILabel.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Uilabel Copyable

Ppcounter
iOS与macOS中一款优雅的数字/金额增减动效组件
Stars: ✭ 451 (+299.12%)
Mutual labels:  cocoapods, uilabel
Cltypinglabel
iOS UILabel with character by character typing /typewriter animation
Stars: ✭ 192 (+69.91%)
Mutual labels:  cocoapods, uilabel
Efautoscrolllabel
A label which can scroll when text length beyond the width of label.
Stars: ✭ 111 (-1.77%)
Mutual labels:  cocoapods, uilabel
Swifticonfont
Icons fonts for iOS (Font Awesome 5, Iconic, Ionicon, Octicon, Themify, MapIcon, MaterialIcon, Foundation 3, Elegant Icon, Captain Icon)
Stars: ✭ 1,094 (+868.14%)
Mutual labels:  cocoapods, uilabel
Lcnewfeature
几行代码快速集成新特性界面!
Stars: ✭ 109 (-3.54%)
Mutual labels:  cocoapods
Appdevkit
AppDevKit is an iOS development library that provides developers with useful features to fulfill their everyday iOS app development needs.
Stars: ✭ 1,426 (+1161.95%)
Mutual labels:  cocoapods
Pocketsvg
Easily convert your SVG files into CGPaths, CAShapeLayers, and UIBezierPaths
Stars: ✭ 1,483 (+1212.39%)
Mutual labels:  cocoapods
Ihequalizerview
An Custom UIView which draws the output of an audio asset in real time.
Stars: ✭ 106 (-6.19%)
Mutual labels:  cocoapods
Microfeatures Example
📦📱 Example of iOS app built using the uFeatures architecture
Stars: ✭ 112 (-0.88%)
Mutual labels:  cocoapods
Randomkit
Random data generation in Swift
Stars: ✭ 1,458 (+1190.27%)
Mutual labels:  cocoapods
Pincodeinputview
A input text view for entering pin code.
Stars: ✭ 108 (-4.42%)
Mutual labels:  cocoapods
Bblocationmanager
A Location Manager for easily implementing location services & geofencing in iOS. Ready for iOS 11.
Stars: ✭ 107 (-5.31%)
Mutual labels:  cocoapods
Tkkeyboardcontrol
TKKeyboardControl adds keyboard awareness and scrolling dismissal (like iMessages app) to any view with only 1 line of code for Swift.
Stars: ✭ 110 (-2.65%)
Mutual labels:  cocoapods
Nextgrowingtextview
📝 The next in the generations of 'growing textviews' optimized for iOS 8 and above.
Stars: ✭ 1,540 (+1262.83%)
Mutual labels:  cocoapods
Device
Light weight tool for detecting the current device and screen size written in swift.
Stars: ✭ 1,503 (+1230.09%)
Mutual labels:  cocoapods
Buckets Swift
Swift Collection Data Structures Library
Stars: ✭ 106 (-6.19%)
Mutual labels:  cocoapods
Alamofire
Elegant HTTP Networking in Swift
Stars: ✭ 36,896 (+32551.33%)
Mutual labels:  cocoapods
Nvactivityindicatorview
A collection of awesome loading animations
Stars: ✭ 10,031 (+8776.99%)
Mutual labels:  cocoapods
Swifterswift
A handy collection of more than 500 native Swift extensions to boost your productivity.
Stars: ✭ 10,706 (+9374.34%)
Mutual labels:  cocoapods
Materialactivityindicator
Material Activity Indicator
Stars: ✭ 109 (-3.54%)
Mutual labels:  cocoapods

UILabel+Copyable Supported Platforms Latest pod release Build Status codecov.io

A simple UILabel category meant to add copy functionality to it.

Features

  • Supports Interface Builder
  • Supports long press gesture
  • Allows enable/disable the copy feature
  • Works with all UILabel objects already in your project

Installation

CocoaPods

UILabel+Copyable is available via CocoaPods.

pod 'UILabel+Copyable', '~> 2.0'

Swift Package Manager

The Swift Package Manager is also supported

Once you have your Swift package set up, adding UILabel+Copyable as a dependency is as easy as adding it to the dependencies value of your Package.swift:

dependencies: [
    .package(url: "https://github.com/alexandreos/UILabel-Copyable.git", .upToNextMajor(from: "2.0"))
]

Old-fashioned way

  • Add UILabel+Copyable.swift to your project.

Usage

Just import the module: import UILabel_Copyable and then set the isCopyingEnabled property to true:

Swift:

let label = UILabel(frame: CGRect(x: 0, y: 0, width: 100, height: 30))
label.isCopyingEnabled = true
view.addSubview(label)

Objective-C:

UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 30)];
label.isCopyingEnabled = YES;
[self.view addSubview:label];

The same thing can be done with IBOutlet UILabel:

Swift:

import UILabel_Copyable

@IBOutlet weak var label: UILabel?

// ...
label?.isCopyingEnabled = true

Included is a demo project showing how to use it from a storyboard.

UILabel+Copyable

Change log

Please see CHANGELOG

License

UILabel+Copyable is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

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].