Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
13
iphone/Maps/UI/PlacePage/PlacePageLayout/CopyLabel.swift
Normal file
13
iphone/Maps/UI/PlacePage/PlacePageLayout/CopyLabel.swift
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
final class CopyLabel: UILabel {
|
||||
override var canBecomeFirstResponder: Bool {
|
||||
true
|
||||
}
|
||||
|
||||
override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
|
||||
action == #selector(copy(_:))
|
||||
}
|
||||
|
||||
override func copy(_ sender: Any?) {
|
||||
UIPasteboard.general.string = text
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue