@@ -34,38 +34,38 @@ class ViewController: UIViewController {
3434
3535 @IBAction func showSuccess( _ sender: AnyObject ) {
3636 let alert = SCLAlertView ( )
37- alert. addButton ( " First Button " , target: self , selector: #selector( ViewController . firstButton) )
38- alert. addButton ( " Second Button " ) {
37+ _ = alert. addButton ( " First Button " , target: self , selector: #selector( ViewController . firstButton) )
38+ _ = alert. addButton ( " Second Button " ) {
3939 print ( " Second button tapped " )
4040 }
41- alert. showSuccess ( kSuccessTitle, subTitle: kSubtitle)
41+ _ = alert. showSuccess ( kSuccessTitle, subTitle: kSubtitle)
4242 }
4343
4444 @IBAction func showError( _ sender: AnyObject ) {
45- SCLAlertView ( ) . showError ( " Hold On... " , subTitle: " You have not saved your Submission yet. Please save the Submission before accessing the Responses list. Blah de blah de blah, blah. Blah de blah de blah, blah.Blah de blah de blah, blah.Blah de blah de blah, blah.Blah de blah de blah, blah.Blah de blah de blah, blah. " , closeButtonTitle: " OK " )
45+ _ = SCLAlertView ( ) . showError ( " Hold On... " , subTitle: " You have not saved your Submission yet. Please save the Submission before accessing the Responses list. Blah de blah de blah, blah. Blah de blah de blah, blah.Blah de blah de blah, blah.Blah de blah de blah, blah.Blah de blah de blah, blah.Blah de blah de blah, blah. " , closeButtonTitle: " OK " )
4646// SCLAlertView().showError(self, title: kErrorTitle, subTitle: kSubtitle)
4747 }
4848
4949 @IBAction func showNotice( _ sender: AnyObject ) {
50- SCLAlertView ( ) . showNotice ( kNoticeTitle, subTitle: kSubtitle)
50+ _ = SCLAlertView ( ) . showNotice ( kNoticeTitle, subTitle: kSubtitle)
5151 }
5252
5353 @IBAction func showWarning( _ sender: AnyObject ) {
54- SCLAlertView ( ) . showWarning ( kWarningTitle, subTitle: kSubtitle)
54+ _ = SCLAlertView ( ) . showWarning ( kWarningTitle, subTitle: kSubtitle)
5555 }
5656
5757 @IBAction func showInfo( _ sender: AnyObject ) {
58- SCLAlertView ( ) . showInfo ( kInfoTitle, subTitle: kSubtitle)
58+ _ = SCLAlertView ( ) . showInfo ( kInfoTitle, subTitle: kSubtitle)
5959 }
6060
6161 @IBAction func showEdit( _ sender: AnyObject ) {
6262 let appearance = SCLAlertView . SCLAppearance ( showCloseButton: true )
6363 let alert = SCLAlertView ( appearance: appearance)
6464 let txt = alert. addTextField ( " Enter your name " )
65- alert. addButton ( " Show Name " ) {
65+ _ = alert. addButton ( " Show Name " ) {
6666 print ( " Text value: \( txt. text) " )
6767 }
68- alert. showEdit ( kInfoTitle, subTitle: kSubtitle)
68+ _ = alert. showEdit ( kInfoTitle, subTitle: kSubtitle)
6969 }
7070
7171
@@ -107,30 +107,30 @@ class ViewController: UIViewController {
107107
108108 // Add the subview to the alert's UI property
109109 alert. customSubview = subview
110- alert. addButton ( " Login " ) {
110+ _ = alert. addButton ( " Login " ) {
111111 print ( " Logged in " )
112112 }
113113
114114 // Add Button with Duration Status and custom Colors
115- alert. addButton ( " Duration Button " , backgroundColor: UIColor . brown, textColor: UIColor . yellow, showDurationStatus: true ) {
115+ _ = alert. addButton ( " Duration Button " , backgroundColor: UIColor . brown, textColor: UIColor . yellow, showDurationStatus: true ) {
116116 print ( " Duration Button tapped " )
117117 }
118118
119- alert. showInfo ( " Login " , subTitle: " " , duration: 10 )
119+ _ = alert. showInfo ( " Login " , subTitle: " " , duration: 10 )
120120 }
121121
122122 @IBAction func showCustomAlert( _ sender: AnyObject ) {
123123
124124 let alert = SCLAlertView ( )
125- alert. addButton ( " First Button " , target: self , selector: #selector( ViewController . firstButton) )
126- alert. addButton ( " Second Button " ) {
125+ _ = alert. addButton ( " First Button " , target: self , selector: #selector( ViewController . firstButton) )
126+ _ = alert. addButton ( " Second Button " ) {
127127 print ( " Second button tapped " )
128128 }
129129
130130 let icon = UIImage ( named: " custom_icon.png " )
131131 let color = UIColor . orange
132132
133- alert. showCustom ( " Custom Color " , subTitle: " Custom color " , color: color, icon: icon!)
133+ _ = alert. showCustom ( " Custom Color " , subTitle: " Custom color " , color: color, icon: icon!)
134134 }
135135
136136 func firstButton( ) {
0 commit comments