Skip to content

Instantly share code, notes, and snippets.

@elpsk
Created September 28, 2018 10:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save elpsk/5467aece2c5c010731082178b115e7d1 to your computer and use it in GitHub Desktop.
Swift - pasteboard
//
// PasteboardVC.swift
// Created by Pasca Alberto, IT on 10/08/18.
// Copyright © 2018 albertopasca.it. All rights reserved.
//
import UIKit
class PasteboardVC: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.readPasteBoard()
}
func readPasteBoard() {
let pasteboardString: String? = UIPasteboard.general.string
print("COPYED STRING: \(pasteboardString)")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment