Skip to content

Instantly share code, notes, and snippets.

View cymtrick's full-sized avatar
🎯
Focusing

cymtrick cymtrick

🎯
Focusing
View GitHub Profile
@objc func oneOfUsAction(sender: UIButton!)
{
DispatchQueue.main.async {
let secondViewController = secondViewController()
let secondController = UINavigationController(rootViewController: secondViewController)
let feedback = UINotificationFeedbackGenerator()
feedback.notificationOccurred(.success)
UIApplication.shared.keyWindow?.setRootViewController(secondController, options: UIWindow.TransitionOptions(direction: .toRight))
}
}