Fix warnings and deprecated APIs

This commit is contained in:
Mingshen Sun 2023-03-10 20:56:56 -08:00
parent d078d3ca0a
commit 5a91db4f76
8 changed files with 21 additions and 19 deletions

View file

@ -355,8 +355,7 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
let nextHOTPItem = UIMenuItem(title: "NextPassword".localize(), action: #selector(LabelTableViewCell.getNextHOTP))
let openURLItem = UIMenuItem(title: "CopyAndOpen".localize(), action: #selector(LabelTableViewCell.openLink))
menuController.menuItems = [revealItem, concealItem, nextHOTPItem, openURLItem]
menuController.setTargetRect(tappedCell.contentLabel.frame, in: tappedCell.contentLabel.superview!)
menuController.setMenuVisible(true, animated: true)
menuController.showMenu(from: tappedCell.contentLabel.superview!, rect: tappedCell.contentLabel.frame)
}
}
}