Latest 4.0
Homepage https://github.com/igormatyushkin014/Baggage
License MIT
Platforms ios 9.0
Authors

Baggage




The main purpose of Baggage is to simplify work with clipboard. The library is absolutely compatible with standard UIPasteboard class.

How To Get Started

  • Copy content of Baggage folder to your project.

or

  • Use Baggage cocoapod

Requirements

  • iOS 9 and later
  • Xcode 9 and later

Usage

String

Copy string to clipboard:

let str = "Some text"
str.bg.copy()

Get string from clipboard:

let str = String.bg.fromClipboard
NSLog(str) // Some text

UITextField

Copy text to clipboard:

let textField = UITextField()
textField.text = "Some text"
textField.bg.copy()

Paste text from clipboard:

textField.bg.paste()
NSLog(textField.text!) // Some text

UITextView

Copy text to clipboard:

let textView = UITextView()
textView.text = "Some text"
textView.bg.copy()

Paste text from clipboard:

textView.bg.paste()
NSLog(textView.text) // Some text

License

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

Latest podspec

{
    "name": "Baggage",
    "version": "4.0",
    "summary": "Simplifying work with clipboard in iOS.",
    "description": "Baggage is a set of extensions for iOS SDK that simplify work with clipboard. Written in Swift.",
    "homepage": "https://github.com/igormatyushkin014/Baggage",
    "screenshots": "https://github.com/igormatyushkin014/Baggage/raw/master/Logo/logo-1024-300.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Igor Matyushkin": "[email protected]"
    },
    "social_media_url": "https://twitter.com/imatyushkin1",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/igormatyushkin014/Baggage.git",
        "tag": "4.0"
    },
    "source_files": [
        "Baggage",
        "Baggage/**/*"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This