mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
14 lines
305 B
Swift
14 lines
305 B
Swift
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
|
|
}
|
|
}
|