mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
[ios] Removing conditionals for unsupported iOS versions
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
@@ -29,12 +29,7 @@ class CopyableLabel: UILabel {
|
||||
var rect = bounds
|
||||
rect.origin = locationOfTouchInLabel
|
||||
rect.size = CGSize(width: 1, height: 1)
|
||||
if #available(iOS 13, *) {
|
||||
menu.showMenu(from: self, rect: rect)
|
||||
} else {
|
||||
menu.setTargetRect(rect, in: self)
|
||||
menu.setMenuVisible(true, animated: false)
|
||||
}
|
||||
menu.showMenu(from: self, rect: rect)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user