Sample Swift code for displaying and customizing UIAlerts, UIViewController.presentViewController, UINavigationController.navigationController.pushViewController and UIPopoverController