Skip to content

Instantly share code, notes, and snippets.

View pushpankq's full-sized avatar
🏠
Working from home

Pushpank pushpankq

🏠
Working from home
  • Noida
View GitHub Profile
@cscouto
cscouto / InterctiveLabel.Swift
Created March 16, 2018 19:32
SWIFT - Copying with UIMenuController from a UILabel
import UIKit
class InterctiveLabel: UILabel {
override var canBecomeFirstResponder: Bool {
return true
}
override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
self.backgroundColor = UIColor(hex: "EEEEEE")