@@ -129,7 +129,7 @@ extension ExampleViewController: ExampleViewDelegate {
129129 // Basic Warning Notification with Custom Color
130130 let banner = NotificationBanner ( title: " Basic Notification " ,
131131 subtitle: " Must Be Dismissed Manually " ,
132- style: . none )
132+ style: . customView )
133133 banner. delegate = self
134134 banner. backgroundColor = blockColor ( at: IndexPath ( row: 5 , section: 0 ) )
135135 banner. autoDismiss = false
@@ -230,19 +230,36 @@ extension ExampleViewController: ExampleViewDelegate {
230230 let banner = FloatingNotificationBanner ( title: " Success Notification " ,
231231 subtitle: " This type of banner floats and has the capability of growing to an infinite amount of lines. This one also has a shadow. " ,
232232 style: . success)
233+
233234 banner. delegate = self
234235 banner. show ( queuePosition: selectedQueuePosition ( ) ,
235236 bannerPosition: selectedBannerPosition ( ) ,
236237 cornerRadius: 10 ,
237238 shadowBlurRadius: 15 )
238- default :
239+ case 1 :
239240 let banner = FloatingNotificationBanner ( title: " Danger Notification " ,
240241 subtitle: " This type of banner floats and has the capability of growing to an infinite amount of lines. " ,
241242 style: . danger)
242243 banner. delegate = self
243244 banner. show ( queuePosition: selectedQueuePosition ( ) ,
244245 bannerPosition: selectedBannerPosition ( ) ,
245246 cornerRadius: 10 )
247+ case 2 :
248+ let banner = FloatingNotificationBanner ( title: " Info Notification " ,
249+ subtitle: " With adjusted transparency! " ,
250+ style: . info)
251+ banner. delegate = self
252+ banner. transparency = 0.75
253+ banner. show ( queuePosition: selectedQueuePosition ( ) ,
254+ bannerPosition: selectedBannerPosition ( ) ,
255+ cornerRadius: 10 )
256+ default :
257+ let banner = FloatingNotificationBanner ( customView: NorthCarolinaBannerView ( ) )
258+ banner. delegate = self
259+ banner. show ( queuePosition: selectedQueuePosition ( ) ,
260+ bannerPosition: selectedBannerPosition ( ) ,
261+ cornerRadius: 10 ,
262+ shadowBlurRadius: 15 )
246263 }
247264 }
248265
@@ -314,7 +331,7 @@ extension ExampleViewController: ExampleViewDelegate {
314331 case 3 :
315332 return 2
316333 case 4 :
317- return 2
334+ return 4
318335 case 5 :
319336 return 6
320337 default :
@@ -420,6 +437,10 @@ extension ExampleViewController: ExampleViewDelegate {
420437 return ( " Success Notification " , " This type of banner can float and can have its cornerRadius property adjusted " )
421438 case 1 :
422439 return ( " Danger Notification " , " This type of banner can float and can have its cornerRadius property adjusted " )
440+ case 2 :
441+ return ( " Info Notification " , " With adjusted transparency! " )
442+ case 3 :
443+ return ( " Tarheels Notification " , " This type of banner can float and can have its cornerRadius property adjusted " )
423444 default :
424445 return ( " " , nil )
425446 }
@@ -453,6 +474,13 @@ extension ExampleViewController: ExampleViewDelegate {
453474 default :
454475 return nil
455476 }
477+ } else if indexPath. section == 4 {
478+ switch indexPath. row {
479+ case 3 :
480+ return #imageLiteral( resourceName: " unc_logo " )
481+ default :
482+ return nil
483+ }
456484 }
457485
458486 return nil
0 commit comments