Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8853580

Browse files
committed
NEW : Alert style notification added
1 parent 30379a9 commit 8853580

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CFAlertViewController/CFAlertViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ open class CFAlertViewController: UIViewController {
1717
@objc public enum CFAlertControllerStyle : Int {
1818
case alert = 0
1919
case actionSheet
20+
case notification
2021
}
2122

2223
@objc public enum CFAlertControllerBackgroundStyle : Int {

Demo/CFAlertViewControllerDemo/Base.lproj/Main.storyboard

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<segments>
3434
<segment title="Alert"/>
3535
<segment title="Action Sheet"/>
36+
<segment title="Notification"/>
3637
</segments>
3738
</segmentedControl>
3839
</subviews>

Demo/CFAlertViewControllerDemo/View Controller/HomeTableViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ - (CFAlertControllerStyle) getAlertStyle {
265265
return CFAlertControllerStyleActionSheet;
266266
break;
267267

268+
case 2:
269+
return CFAlertControllerStyleNotification;
270+
break;
271+
268272
default:
269273
break;
270274
}

0 commit comments

Comments
 (0)