Skip to content
Swift - Swift UIAlertViews Demo - Demo 17 of 30
Swift
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
UIAlertViews Demo.xcodeproj
UIAlertViews Demo
README.md
github-SwiftUIAlertViewsDemo01.jpg
github-SwiftUIAlertViewsDemo02.jpg
github-SwiftUIAlertViewsDemo03.jpg
github-SwiftUIAlertViewsDemo04.jpg
github-SwiftUIAlertViewsDemo05.jpg
github-SwiftUIAlertViewsDemo06.jpg

README.md

SwiftUIAlertViewsDemo

Swift - Swift UIAlertViews Demo - Demo 17 of 30

App created in Xcode 10.3 (10G8) using Swift 4.2, iOS Deployment Target 12.4 and tested on a iPhone Xr Emulator

In this demo app we demonstrate how to code swift UIAlertViews.

There are so many interesting things within swift. This demo shows one way to use UIAlertViews in an app.

As the user gets into the app. They are greeted with a mock 'Login Screen' which has a place for an email and password to be typed into the textfields and then a button below that is marked 'Click to Demo Alert View. For this demo the user just clicks the button and an alert box pops up. The alert box title 'Unable to log in' is displayed along with some details about the error 'The email or password that you typed in is incorrect'. Then right below are two button options 'Dismiss' and 'Action'.

When the user clicks the 'Dismiss' option, the alert box closes and they are taken back to the main page with a label displaying a message under the button now displayed 'Alert Acknowledged'. But if the user clicks the 'Action' option, the alert box closes and they are taken back to the main page with the label now displaying the message 'Action Requested'. Note when the alert box pops up, the background is greyed out and the user must make a selection to get out of the alert box prompt.

Coming soon:
Details and the screen cap images of the app in use can be found on Digital Mirko.

Screen Cap on a iPhone Xr device:(shown below)
(Left image) (Top Row) App started., (Bottom Row) App started.
(Middle Image) (Top Row) Button Clicked Alert Box Shown., (Bottom Row) Button Clicked Alert Box Shown.
(Right image) (Top Row) Dismiss Button Clicked., (Bottom Row) Action Button Clicked.

You can’t perform that action at this time.