Created
September 28, 2018 10:25
Star
You must be signed in to star a gist
Swift - pasteboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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